Index: LayoutTests/fast/dom/Geolocation/invalid-internals-arguments-no-crash-expected.txt |
diff --git a/LayoutTests/fast/dom/Geolocation/invalid-internals-arguments-no-crash-expected.txt b/LayoutTests/fast/dom/Geolocation/invalid-internals-arguments-no-crash-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2c1f604029f5d61cdba12a87f5c01f66649f7e5b |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Geolocation/invalid-internals-arguments-no-crash-expected.txt |
@@ -0,0 +1,19 @@ |
+Verify that using invalid or detached documents on internal test methods does not crash. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+PASS internals.setGeolocationClientMock(null); threw exception TypeError: Failed to execute 'setGeolocationClientMock' on 'Internals': parameter 1 is not of type 'Document'.. |
+PASS internals.setGeolocationPosition(null, 1, 2, 3); threw exception TypeError: Failed to execute 'setGeolocationPosition' on 'Internals': parameter 1 is not of type 'Document'.. |
+PASS internals.setGeolocationPermission(window.notThere, true); threw exception TypeError: Failed to execute 'setGeolocationPermission' on 'Internals': parameter 1 is not of type 'Document'.. |
+PASS internals.setGeolocationPositionUnavailableError(null, 'not available'); threw exception TypeError: Failed to execute 'setGeolocationPositionUnavailableError' on 'Internals': parameter 1 is not of type 'Document'.. |
+PASS internals.numberOfPendingGeolocationPermissionRequests(null) threw exception TypeError: Failed to execute 'numberOfPendingGeolocationPermissionRequests' on 'Internals': parameter 1 is not of type 'Document'.. |
+PASS iframe.internals.setGeolocationClientMock(iframe.document) is undefined. |
+PASS iframe.internals.setGeolocationPosition(iframe.document, 1, 2, 3) is undefined. |
+PASS iframe.internals.setGeolocationPermission(iframe.document, true) is undefined. |
+PASS iframe.internals.setGeolocationPositionUnavailableError(iframe.document, 'not available') is undefined. |
+PASS iframe.internals.numberOfPendingGeolocationPermissionRequests(iframe.document) is -1 |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |