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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/invalid-internals-arguments-no-crash-expected.txt

Issue 1948033003: Convert most geolocation layout tests to use a JS mock implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-disconnect
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 Verify that using invalid or detached documents on internal test methods does no t crash.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS internals.setGeolocationClientMock(null); threw exception TypeError: Failed to execute 'setGeolocationClientMock' on 'Internals': parameter 1 is not of typ e 'Document'..
7 PASS internals.setGeolocationPosition(null, 1, 2, 3); threw exception TypeError: Failed to execute 'setGeolocationPosition' on 'Internals': parameter 1 is not o f type 'Document'..
8 PASS internals.setGeolocationPermission(window.notThere, true); threw exception TypeError: Failed to execute 'setGeolocationPermission' on 'Internals': paramete r 1 is not of type 'Document'..
9 PASS internals.setGeolocationPositionUnavailableError(null, 'not available'); th rew exception TypeError: Failed to execute 'setGeolocationPositionUnavailableErr or' on 'Internals': parameter 1 is not of type 'Document'..
10 PASS internals.numberOfPendingGeolocationPermissionRequests(null) threw exceptio n TypeError: Failed to execute 'numberOfPendingGeolocationPermissionRequests' on 'Internals': parameter 1 is not of type 'Document'..
11 PASS iframeInternals.setGeolocationClientMock(iframe.document) is undefined.
12 PASS iframeInternals.setGeolocationPosition(iframe.document, 1, 2, 3) is undefin ed.
13 PASS iframeInternals.setGeolocationPermission(iframe.document, true) is undefine d.
14 PASS iframeInternals.setGeolocationPositionUnavailableError(iframe.document, 'no t available') is undefined.
15 PASS iframeInternals.numberOfPendingGeolocationPermissionRequests(iframe.documen t) is -1
16 PASS successfullyParsed is true
17
18 TEST COMPLETE
19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698