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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DeviceMotion/create-event.html

Issue 2677603003: Move DeviceMotion and DeviceOrientation out from fast/dom/. (Closed)
Patch Set: device_orientation Created 3 years, 10 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: third_party/WebKit/LayoutTests/fast/dom/DeviceMotion/create-event.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DeviceMotion/create-event.html b/third_party/WebKit/LayoutTests/fast/dom/DeviceMotion/create-event.html
deleted file mode 100644
index 73eb60c6c24727cfe3efd04ffdda96cc8d8a7ecf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/DeviceMotion/create-event.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<script>
-description("Tests that document.createEvent() works with DeviceMotionEvent.");
-
-var event = document.createEvent('DeviceMotionEvent');
-var newEvent = new CustomEvent("devicemotion", {
- bubbles: false, cancelable: false,
- acceleration: {x:1.5,y:2.5,z:3.5},
- accelerationIncludingGravity: {x:4.5,y:5.5,z:6.5},
- rotationRate: {alpha:7.5,beta:8.5,gamma:9.5},
- interval: 0.5
-});
-
-shouldBeTrue("typeof event == 'object'");
-shouldBe("event.__proto__", "DeviceMotionEvent.prototype");
-
-shouldBeTrue("'type' in event");
-shouldBeTrue("'bubbles' in event");
-shouldBeTrue("'cancelable' in event");
-shouldBeTrue("'acceleration' in event");
-shouldBeTrue("'accelerationIncludingGravity' in event");
-shouldBeTrue("'rotationRate' in event");
-shouldBeTrue("'interval' in event");
-
-shouldBeTrue("typeof newEvent.type == 'string'");
-shouldBeEqualToString("newEvent.type", "devicemotion");
-shouldBeTrue("typeof newEvent.bubbles == 'boolean'");
-shouldBeFalse("event.bubbles");
-shouldBeFalse("newEvent.bubbles");
-shouldBeTrue("typeof newEvent.cancelable == 'boolean'");
-shouldBeFalse("event.cancelable");
-shouldBeFalse("newEvent.cancelable");
-shouldBeTrue("typeof event.acceleration == 'object'");
-shouldBeTrue("typeof event.accelerationIncludingGravity == 'object'");
-shouldBeTrue("typeof event.rotationRate == 'object'");
-shouldBeTrue("typeof event.interval == 'object'");
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698