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

Unified Diff: content/test/data/device_sensors/device_motion_only_some_sensors_are_available_test.html

Issue 2953263002: Revert of Reland: Refactor DeviceMotionEventPump to use //device/generic_sensor instead of //device/sensors (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « content/test/DEPS ('k') | content/test/data/device_sensors/device_motion_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/device_sensors/device_motion_only_some_sensors_are_available_test.html
diff --git a/content/test/data/device_sensors/device_motion_only_some_sensors_are_available_test.html b/content/test/data/device_sensors/device_motion_only_some_sensors_are_available_test.html
deleted file mode 100644
index b0286e70781e691f1cc32998fadef9a08a7bdb95..0000000000000000000000000000000000000000
--- a/content/test/data/device_sensors/device_motion_only_some_sensors_are_available_test.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<html>
- <head>
- <title>DeviceMotion only some sensors are available test</title>
- <script type="text/javascript">
- let expectedInterval = Math.floor(1000 / 60);
- function checkMotionEvent(event) {
- return event.acceleration.x == 1 &&
- event.acceleration.y == 2 &&
- event.acceleration.z == 3 &&
- event.accelerationIncludingGravity.x == null &&
- event.accelerationIncludingGravity.y == null &&
- event.accelerationIncludingGravity.z == null &&
- event.rotationRate.alpha == 7 &&
- event.rotationRate.beta == 8 &&
- event.rotationRate.gamma == 9 &&
- event.interval == expectedInterval;
- }
-
- 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>
« no previous file with comments | « content/test/DEPS ('k') | content/test/data/device_sensors/device_motion_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698