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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/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/DeviceOrientation/create-event.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/create-event.html b/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/create-event.html
deleted file mode 100644
index 962b394e6c74276bab66c379c74a7ae29e0cd944..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/create-event.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<script>
-description('Tests that document.createEvent() works with DeviceOrientationEvent.');
-
-var event = document.createEvent('DeviceOrientationEvent');
-var newEvent = new CustomEvent("deviceorientation", {
- bubbles: false, cancelable: false,
- alpha: 1.0,
- beta: 2.0,
- gama: 3.0,
- absolute: false
-});
-
-shouldBeTrue("typeof event == 'object'");
-shouldBe("event.__proto__", "DeviceOrientationEvent.prototype");
-
-shouldBeTrue("'type' in event");
-shouldBeTrue("'bubbles' in event");
-shouldBeTrue("'cancelable' in event");
-shouldBeTrue("'alpha' in event");
-shouldBeTrue("'beta' in event");
-shouldBeTrue("'gamma' in event");
-shouldBeTrue("'absolute' in event");
-
-shouldBeTrue("typeof event.type == 'string'");
-shouldBeTrue("typeof event.bubbles == 'boolean'");
-shouldBeTrue("typeof event.cancelable == 'boolean'");
-shouldBeTrue("typeof event.alpha == 'object'");
-shouldBeTrue("typeof event.beta == 'object'");
-shouldBeTrue("typeof event.gamma == 'object'");
-shouldBeTrue("typeof event.absolute == 'boolean'");
-
-shouldBeEqualToString("newEvent.type", "deviceorientation");
-shouldBeFalse("newEvent.bubbles");
-shouldBeFalse("newEvent.cancelable");
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698