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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/error-clear-watch.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="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("This tests removing the watcher from an error callback does not cau ses assertions."); 10 description("This tests removing the watcher from an error callback does not cau ses assertions.");
11 11
12 if (!window.testRunner || !window.mojo)
13 debug('This test can not run without testRunner or mojo');
14
15 geolocationServiceMock.then(mock => { 12 geolocationServiceMock.then(mock => {
16 mock.setGeolocationPermission(true); 13 mock.setGeolocationPermission(true);
17 mock.setGeolocationPositionUnavailableError("debug"); 14 mock.setGeolocationPositionUnavailableError("debug");
18 15
19 var watchId = navigator.geolocation.watchPosition(function() { 16 var watchId = navigator.geolocation.watchPosition(function() {
20 navigator.geolocation.clearWatch(watchId); 17 navigator.geolocation.clearWatch(watchId);
21 finishJSTest(); 18 finishJSTest();
22 }, function(e) { 19 }, function(e) {
23 navigator.geolocation.clearWatch(watchId); 20 navigator.geolocation.clearWatch(watchId);
24 finishJSTest(); 21 finishJSTest();
25 }); 22 });
26 }); 23 });
27 24
28 25
29 window.jsTestIsAsync = true; 26 window.jsTestIsAsync = true;
30 </script> 27 </script>
31 </body> 28 </body>
32 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698