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('Tests using null values for some or all of the event properties.'); | 6 description('Tests using null values for some or all of the event properties.'); |
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 setMockMotion(null, null, null, | 100 setMockMotion(null, null, null, |
101 null, null, null, | 101 null, null, null, |
102 null, null, null, | 102 null, null, null, |
103 0); | 103 0); |
104 window.addEventListener('devicemotion', firstListener); | 104 window.addEventListener('devicemotion', firstListener); |
105 | 105 |
106 window.jsTestIsAsync = true; | 106 window.jsTestIsAsync = true; |
107 </script> | 107 </script> |
108 </body> | 108 </body> |
109 </html> | 109 </html> |
OLD | NEW |