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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/window-close-popup.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 <script src="../../../../resources/mojo-helpers.js"></script> 1 <script src="../../../../resources/mojo-helpers.js"></script>
2 <script src="geolocation-mock.js"></script> 2 <script src="geolocation-mock.js"></script>
3 <script> 3 <script>
4 var mockLatitude = 51.478; 4 var mockLatitude = 51.478;
5 var mockLongitude = -0.166; 5 var mockLongitude = -0.166;
6 var mockAccuracy = 100.0; 6 var mockAccuracy = 100.0;
7 7
8 function loadNext() { 8 function loadNext() {
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(mockLatitude, mockLongitude, mockAccuracy); 11 mock.setGeolocationPosition(mockLatitude, mockLongitude, mockAccuracy);
15 12
16 navigator.geolocation.watchPosition(window.opener.gotPosition); 13 navigator.geolocation.watchPosition(window.opener.gotPosition);
17 }); 14 });
18 } 15 }
19 </script> 16 </script>
20 <body onload="loadNext()"></body> 17 <body onload="loadNext()"></body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698