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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/watchPosition-page-visibility.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> 1 <!DOCTYPE html>
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="resources/geolocation-mock.js"></script> 6 <script src="resources/geolocation-mock.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <script> 9 <script>
10 description("Tests that watchPosition does not report position changes when the page is not visible."); 10 description("Tests that watchPosition does not report position changes when the page is not visible.");
11 window.jsTestIsAsync = true; 11 window.jsTestIsAsync = true;
12 12
13 if (!window.testRunner || !window.mojo) 13 if (!window.testRunner)
14 debug('This test can not run without testRunner or mojo'); 14 debug('This test can not run without testRunner');
15 15
16 var position; 16 var position;
17 var error; 17 var error;
18 var isPageVisible = true; 18 var isPageVisible = true;
19 19
20 geolocationServiceMock.then(mock => { 20 geolocationServiceMock.then(mock => {
21 mock.setGeolocationPermission(true); 21 mock.setGeolocationPermission(true);
22 22
23 debug("* Page is visible"); 23 debug("* Page is visible");
24 24
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 updatePosition(); 80 updatePosition();
81 }, function(e) { 81 }, function(e) {
82 testFailed('Error callback invoked unexpectedly'); 82 testFailed('Error callback invoked unexpectedly');
83 finishJSTest(); 83 finishJSTest();
84 }); 84 });
85 }); 85 });
86 86
87 </script> 87 </script>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698