Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
PassCall getCurrentPosition without arguments, check that exception is thrown
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     navigator.geolocation.getCurrentPosition();   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:11:3)
PassCall getCurrentPosition with null success callback, check that exception is thrown
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     navigator.geolocation.getCurrentPosition(null);   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:18:3)
PassCall getCurrentPosition with null success and error callbacks, check that exception is thrown
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     navigator.geolocation.getCurrentPosition(null, null);   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:25:3)
PassCall getCurrentPosition() with wrong type for first argument. Exception expected.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     navigator.geolocation.getCurrentPosition(3);   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:32:3)
PassCall getCurrentPosition() with wrong type for second argument. Exception expected.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     navigator.geolocation.getCurrentPosition(()=>{}, 4);   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:39:3)
PassCall getCurrentPosition() with wrong type for third argument. Exception expected.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     navigator.geolocation.getCurrentPosition(()=>{}, ()=>{}, 4);   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:46:3)
PassCalling getCurrentPosition() with a legacy event handler objects.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () {     navigator.geolocation.getCurrentPosition({ handleEvent });   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:53:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () {     navigator.geolocation.getCurrentPosition(()=>{}, { handleEvent });   }")
    at Test.<anonymous> ( /geolocation/getCurrentPosition_TypeError.https.html:57:3)