Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Unified Diff: LayoutTests/fast/dom/Geolocation/invalid-internals-arguments-no-crash-expected.txt

Issue 925953003: Make Geolocation internal test methods more resilient. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+

Powered by Google App Engine
This is Rietveld 408576698