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 description('Test no fire listeners added during event dispatch.'); | 6 description('Test no fire listeners added during event dispatch.'); |
7 | 7 |
8 var mockEvent; | 8 var mockEvent; |
9 function setMockMotion(accelerationX, accelerationY, accelerationZ, | 9 function setMockMotion(accelerationX, accelerationY, accelerationZ, |
10 accelerationIncludingGravityX, accelerationIncludingGravi
tyY, accelerationIncludingGravityZ, | 10 accelerationIncludingGravityX, accelerationIncludingGravi
tyY, accelerationIncludingGravityZ, |
11 rotationRateAlpha, rotationRateBeta, rotationRateGamma, | 11 rotationRateAlpha, rotationRateBeta, rotationRateGamma, |
12 interval) { | 12 interval) { |
13 | 13 |
14 mockEvent = {accelerationX: accelerationX, accelerationY: accelerationY, acc
elerationZ: accelerationZ, | 14 mockEvent = {accelerationX: accelerationX, accelerationY: accelerationY, acc
elerationZ: accelerationZ, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 setMockMotion(1, 2, 3, | 70 setMockMotion(1, 2, 3, |
71 4, 5, 6, | 71 4, 5, 6, |
72 7, 8, 9, | 72 7, 8, 9, |
73 10); | 73 10); |
74 window.addEventListener('devicemotion', firstListener); | 74 window.addEventListener('devicemotion', firstListener); |
75 | 75 |
76 window.jsTestIsAsync = true; | 76 window.jsTestIsAsync = true; |
77 </script> | 77 </script> |
78 </body> | 78 </body> |
79 </html> | 79 </html> |
OLD | NEW |