Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: content/test/data/device_sensors/device_motion_test.html

Issue 292693004: [DeviceLight] Browser+java part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698