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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-remote-context-inner.html

Issue 2642873002: Moves mojo.define -> gin.define. (Closed)
Patch Set: rebaseline Created 3 years, 11 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/js-test.js"></script> 4 <script src="../../../../resources/js-test.js"></script>
5 <script src="../../../../resources/mojo-helpers.js"></script> 5 <script src="../../../../resources/mojo-helpers.js"></script>
6 <script src="geolocation-mock.js"></script> 6 <script src="geolocation-mock.js"></script>
7 <script> 7 <script>
8 function init() { 8 function init() {
9 if (!window.testRunner || !window.mojo)
10 debug('This test can not run without testRunner or mojo');
11
12 geolocationServiceMock.then(mock => { 9 geolocationServiceMock.then(mock => {
13 mock.setGeolocationPermission(true); 10 mock.setGeolocationPermission(true);
14 mock.setGeolocationPosition(51.478, -0.166, 100); 11 mock.setGeolocationPosition(51.478, -0.166, 100);
15 window.parent.onIframeReady() 12 window.parent.onIframeReady()
16 }); 13 });
17 } 14 }
18 </script> 15 </script>
19 </head> 16 </head>
20 <body onload="init()"> 17 <body onload="init()">
21 </body> 18 </body>
22 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698