| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |