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

Unified Diff: content/test/data/device_orientation/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, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/device_orientation/device_motion_test.html
diff --git a/content/test/data/device_orientation/device_motion_test.html b/content/test/data/device_orientation/device_motion_test.html
deleted file mode 100644
index 11b4e05df1bb0d9832a7ba1a36df38ebc0527a58..0000000000000000000000000000000000000000
--- a/content/test/data/device_orientation/device_motion_test.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
- <head>
- <title>DeviceMotion test</title>
- <script type="text/javascript">
- function checkMotionEvent(event) {
- return event.acceleration.x == 1 &&
- event.acceleration.y == 2 &&
- event.acceleration.z == 3 &&
- event.accelerationIncludingGravity.x == 4 &&
- event.accelerationIncludingGravity.y == 5 &&
- event.accelerationIncludingGravity.z == 6 &&
- event.rotationRate.alpha == 7 &&
- event.rotationRate.beta == 8 &&
- event.rotationRate.gamma == 9 &&
- event.interval == 100;
- }
-
- function onMotion(event) {
- if (checkMotionEvent(event)) {
- window.removeEventListener('devicemotion', onMotion);
- pass();
- } else {
- fail();
- }
- }
-
- function pass() {
- document.getElementById('status').innerHTML = 'PASS';
- document.location = '#pass';
- }
-
- function fail() {
- document.location = '#fail';
- }
- </script>
- </head>
- <body onLoad="window.addEventListener('devicemotion', onMotion)">
- <div id="status">FAIL</div>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698