| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>DeviceMotion test</title> | 3 <title>DeviceMotion test</title> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 function checkMotionEvent(event) { | 5 function checkMotionEvent(event) { |
| 6 return event.acceleration.x == 1 && | 6 return event.acceleration.x == 1 && |
| 7 event.acceleration.y == 2 && | 7 event.acceleration.y == 2 && |
| 8 event.acceleration.z == 3 && | 8 event.acceleration.z == 3 && |
| 9 event.accelerationIncludingGravity.x == 4 && | 9 event.accelerationIncludingGravity.x == 4 && |
| 10 event.accelerationIncludingGravity.y == 5 && | 10 event.accelerationIncludingGravity.y == 5 && |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 function fail() { | 32 function fail() { |
| 33 document.location = '#fail'; | 33 document.location = '#fail'; |
| 34 } | 34 } |
| 35 </script> | 35 </script> |
| 36 </head> | 36 </head> |
| 37 <body onLoad="window.addEventListener('devicemotion', onMotion)"> | 37 <body onLoad="window.addEventListener('devicemotion', onMotion)"> |
| 38 <div id="status">FAIL</div> | 38 <div id="status">FAIL</div> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |