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 using multiple event handlers for the Device Motion API.'); | 7 description('Tests using multiple event handlers for the Device Motion API.'); |
8 | 8 |
9 var mockEvent; | 9 var mockEvent; |
10 var expectedEvent; | 10 var expectedEvent; |
11 function setMockMotion(accelerationX, accelerationY, accelerationZ, | 11 function setMockMotion(accelerationX, accelerationY, accelerationZ, |
12 accelerationIncludingGravityX, accelerationIncludingGravi
tyY, accelerationIncludingGravityZ, | 12 accelerationIncludingGravityX, accelerationIncludingGravi
tyY, accelerationIncludingGravityZ, |
13 rotationRateAlpha, rotationRateBeta, rotationRateGamma, | 13 rotationRateAlpha, rotationRateBeta, rotationRateGamma, |
14 interval) { | 14 interval) { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 0); | 103 0); |
104 expectedEvent = mockEvent; | 104 expectedEvent = mockEvent; |
105 window.addEventListener('devicemotion', firstListener); | 105 window.addEventListener('devicemotion', firstListener); |
106 window.addEventListener('devicemotion', secondListener); | 106 window.addEventListener('devicemotion', secondListener); |
107 | 107 |
108 window.jsTestIsAsync = true; | 108 window.jsTestIsAsync = true; |
109 | 109 |
110 </script> | 110 </script> |
111 </body> | 111 </body> |
112 </html> | 112 </html> |
OLD | NEW |