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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/remove-remote-context-in-error-callback-crash-inner.html

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
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../../resources/mojo-helpers.js"></script>
5 <script src="geolocation-mock.js"></script>
4 <script> 6 <script>
5 function init() { 7 function init() {
6 if (!window.testRunner || !window.internals) 8 if (!window.testRunner || !window.mojo)
7 debug('This test can not run without testRunner or internals'); 9 debug('This test can not run without testRunner or mojo');
8 10
9 internals.setGeolocationClientMock(document); 11 geolocationServiceMock.then(mock => {
10 internals.setGeolocationPermission(document, false); 12 mock.setGeolocationPermission(false);
11 window.parent.onIframeReady() 13 window.parent.onIframeReady()
14 });
12 } 15 }
13 </script> 16 </script>
14 </head> 17 </head>
15 <body onload="init()"> 18 <body onload="init()">
16 </body> 19 </body>
17 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698