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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/optional-event-properties.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/optional-event-properties.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/optional-event-properties.html b/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/optional-event-properties.html
deleted file mode 100644
index 5a4c9444d9431179c14be10f2d3f6b2c5a4cdcc5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/optional-event-properties.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<script>
-description('Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined.');
-
-var event;
-
-evalAndLog("event = document.createEvent('DeviceOrientationEvent')");
-shouldBeTrue("event.alpha == null");
-shouldBeTrue("event.beta == null");
-shouldBeTrue("event.gamma == null");
-shouldBeFalse("event.absolute");
-
-evalAndLog("event.initDeviceOrientationEvent('', false, false, 0, 1, 2, false)");
-shouldBeTrue("event.alpha == 0");
-shouldBeTrue("event.beta == 1");
-shouldBeTrue("event.gamma == 2");
-shouldBeFalse("event.absolute");
-
-evalAndLog("event.initDeviceOrientationEvent('', false, false, 0, 1, 2, true)");
-shouldBeTrue("event.alpha == 0");
-shouldBeTrue("event.beta == 1");
-shouldBeTrue("event.gamma == 2");
-shouldBeTrue("event.absolute");
-
-evalAndLog("event.initDeviceOrientationEvent()");
-shouldBeTrue("event.alpha == null");
-shouldBeTrue("event.beta == null");
-shouldBeTrue("event.gamma == null");
-shouldBeFalse("event.absolute");
-
-evalAndLog("event.initDeviceOrientationEvent('', false, false, [], [], [], [])");
-shouldBeTrue("event.alpha == 0");
-shouldBeTrue("event.beta == 0");
-shouldBeTrue("event.gamma == 0");
-shouldBeTrue("event.absolute");
-
-evalAndLog("event.initDeviceOrientationEvent('', false, false, undefined, undefined, undefined, undefined)");
-shouldBeTrue("event.alpha == null");
-shouldBeTrue("event.beta == null");
-shouldBeTrue("event.gamma == null");
-shouldBeFalse("event.absolute");
-
-evalAndLog("event.initDeviceOrientationEvent('', false, false, '', '', '', '')");
-shouldBeTrue("event.alpha == 0");
-shouldBeTrue("event.beta == 0");
-shouldBeTrue("event.gamma == 0");
-shouldBeFalse("event.absolute");
-
-evalAndLog("event.initDeviceOrientationEvent('', false, false, null, null, null, null)");
-shouldBeTrue("event.alpha == null");
-shouldBeTrue("event.beta == null");
-shouldBeTrue("event.gamma == null");
-shouldBeFalse("event.absolute");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698