Pass | Call watchPosition without arguments, check that exception is thrown | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { navigator.geolocation.watchPosition(); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:11:5) |
|
Pass | Call watchPosition with null success callback, check that exception is thrown | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { navigator.geolocation.watchPosition(null); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:18:5) |
|
Pass | Call watchPosition with null success and error callbacks, check that exception is thrown | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { navigator.geolocation.watchPosition(null, null); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:25:5) |
|
Pass | Call watchPosition() with wrong type for first argument. Exception expected. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { navigator.geolocation.watchPosition(3); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:32:5) |
|
Pass | Call watchPosition() with wrong type for second argument. Exception expected. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { navigator.geolocation.watchPosition(() => {}, 4); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:39:5) |
|
Pass | Call watchPosition() with wrong type for third argument. Exception expected. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { navigator.geolocation.watchPosition( () => {}, () => {}, 4 ); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:46:5) |
|
Pass | Calling watchPosition() with a legacy event handler object. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function () { navigator.geolocation.watchPosition({ handleEvent }); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:57:5) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function () { navigator.geolocation.watchPosition(()=>{}, { handleEvent }); }")
at Test.<anonymous> ( /geolocation/watchPosition_TypeError.https.html:61:5) |
|