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

Unified Diff: LayoutTests/fast/dom/DeviceOrientation/script-tests/optional-event-properties.js

Issue 22599005: Blink-side layout tests for the new Device Orientation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased once more Created 7 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: LayoutTests/fast/dom/DeviceOrientation/script-tests/optional-event-properties.js
diff --git a/LayoutTests/fast/dom/DeviceOrientation/script-tests/optional-event-properties.js b/LayoutTests/fast/dom/DeviceOrientation/script-tests/optional-event-properties.js
index f55f152426cd50d3b8d40666dd22bd9b455c8b5c..d07bb817163d4fc004e0e87d1cc3326e74a20703 100644
--- a/LayoutTests/fast/dom/DeviceOrientation/script-tests/optional-event-properties.js
+++ b/LayoutTests/fast/dom/DeviceOrientation/script-tests/optional-event-properties.js
@@ -6,12 +6,19 @@ evalAndLog("event = document.createEvent('DeviceOrientationEvent')");
shouldBeTrue("event.alpha == null");
shouldBeTrue("event.beta == null");
shouldBeTrue("event.gamma == null");
+shouldBeTrue("event.absolute == null");
evalAndLog("event.initDeviceOrientationEvent('', false, false, 0, 1, 2)");
shouldBeTrue("event.alpha == 0");
shouldBeTrue("event.beta == 1");
shouldBeTrue("event.gamma == 2");
+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");

Powered by Google App Engine
This is Rietveld 408576698