Index: LayoutTests/fast/dom/Geolocation/argument-types-expected.txt |
diff --git a/LayoutTests/fast/dom/Geolocation/argument-types-expected.txt b/LayoutTests/fast/dom/Geolocation/argument-types-expected.txt |
index c8ff3219d2f6ffc6173026abbfa9769de98fd661..1660c64d707f29e006ee93af3a6f0d96318eee6a 100644 |
--- a/LayoutTests/fast/dom/Geolocation/argument-types-expected.txt |
+++ b/LayoutTests/fast/dom/Geolocation/argument-types-expected.txt |
@@ -3,39 +3,39 @@ Tests the acceptable types for arguments to Geolocation methods. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS navigator.geolocation.getCurrentPosition() threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(undefined) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(null) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition({}) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
+PASS navigator.geolocation.getCurrentPosition() threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': 1 argument required, but only 0 present.. |
+PASS navigator.geolocation.getCurrentPosition(undefined) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(null) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition({}) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(Math.abs) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(true) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(42) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(Infinity) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(-Infinity) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition("string") threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 1st argument provided is either null, or an invalid Function object.. |
+PASS navigator.geolocation.getCurrentPosition(true) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(42) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(Infinity) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(-Infinity) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition("string") threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function.. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, null) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, {}) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 2nd argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 2nd argument provided is either null, or an invalid Function object.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, {}) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 2 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 2 is not a function.. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, emptyFunction) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, Math.abs) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, true) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 2nd argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, 42) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 2nd argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, Infinity) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 2nd argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, -Infinity) threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 2nd argument provided is either null, or an invalid Function object.. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, "string") threw exception TypeMismatchError: Failed to execute 'getCurrentPosition' on 'Geolocation': The 2nd argument provided is either null, or an invalid Function object.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, true) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 2 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, 42) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 2 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, Infinity) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 2 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, -Infinity) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 2 is not a function.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, "string") threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 2 is not a function.. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, undefined) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, null) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {}) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, objectThrowingException) threw exception Error: enableHighAccuracy getter exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, emptyFunction) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, true) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, 42) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, Infinity) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, -Infinity) did not throw exception. |
-PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, "string") did not throw exception. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, true) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': parameter 3 ('options') is not an object.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, 42) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': parameter 3 ('options') is not an object.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, Infinity) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': parameter 3 ('options') is not an object.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, -Infinity) threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': parameter 3 ('options') is not an object.. |
+PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, "string") threw exception TypeError: Failed to execute 'getCurrentPosition' on 'Geolocation': parameter 3 ('options') is not an object.. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {dummyProperty:undefined}) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {dummyProperty:null}) did not throw exception. |
PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {dummyProperty:{}}) did not throw exception. |