| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 description('Tests to see if the last available event is fired.'); | 7 description('Tests to see if the last available event is fired.'); |
| 8 | 8 |
| 9 var mockEvent; | 9 var mockEvent; |
| 10 function setMockMotion(accelerationX, accelerationY, accelerationZ, | 10 function setMockMotion(accelerationX, accelerationY, accelerationZ, |
| 11 accelerationIncludingGravityX, accelerationIncludingGravi
tyY, accelerationIncludingGravityZ, | 11 accelerationIncludingGravityX, accelerationIncludingGravi
tyY, accelerationIncludingGravityZ, |
| 12 rotationRateAlpha, rotationRateBeta, rotationRateGamma, | 12 rotationRateAlpha, rotationRateBeta, rotationRateGamma, |
| 13 interval) { | 13 interval) { |
| 14 | 14 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 7, 8, 9, | 74 7, 8, 9, |
| 75 10); | 75 10); |
| 76 | 76 |
| 77 window.addEventListener('devicemotion', mainFrameListener); | 77 window.addEventListener('devicemotion', mainFrameListener); |
| 78 | 78 |
| 79 window.jsTestIsAsync = true; | 79 window.jsTestIsAsync = true; |
| 80 | 80 |
| 81 </script> | 81 </script> |
| 82 </body> | 82 </body> |
| 83 </html> | 83 </html> |
| OLD | NEW |