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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/coordinates-interface-attributes.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("Test the attribute handling of the Coordinates interface"); 10 description("Test the attribute handling of the Coordinates interface");
11 window.jsTestIsAsync = true; 11 window.jsTestIsAsync = true;
12 12
13 if (!window.testRunner || !window.mojo)
14 debug('This test can not run without testRunner or mojo');
15
16 // Format: [Input], [Expected] 13 // Format: [Input], [Expected]
17 // Input: latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, sp eed. 14 // Input: latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, sp eed.
18 // Expected: latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, speed. 15 // Expected: latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, speed.
19 var testSet = [ 16 var testSet = [
20 [[1, 2, 3], [1, 2, 3, null, null, null, null]], 17 [[1, 2, 3], [1, 2, 3, null, null, null, null]],
21 [[2, 3, 4, undefined, undefined, undefined, 5], [2, 3, 4, null, null, null, 5]], 18 [[2, 3, 4, undefined, undefined, undefined, 5], [2, 3, 4, null, null, null, 5]],
22 [[3, 4, 5, undefined, 6, undefined, 7], [3, 4, 5, null, 6, null, 7]], 19 [[3, 4, 5, undefined, 6, undefined, 7], [3, 4, 5, null, 6, null, 7]],
23 [[4, 5, 6, undefined, 7, 8, 9], [4, 5, 6, null, 7, 8, 9]], 20 [[4, 5, 6, undefined, 7, 8, 9], [4, 5, 6, null, 7, 8, 9]],
24 [[5, 6, 7, 8, 9, 10, 11], [5, 6, 7, 8, 9, 10, 11]], 21 [[5, 6, 7, 8, 9, 10, 11], [5, 6, 7, 8, 9, 10, 11]],
25 ]; 22 ];
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 debug("Error!: the error callback was called."); 58 debug("Error!: the error callback was called.");
62 finishJSTest(); 59 finishJSTest();
63 }); 60 });
64 61
65 runNextTest(); 62 runNextTest();
66 }); 63 });
67 64
68 </script> 65 </script>
69 </body> 66 </body>
70 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698