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

Unified Diff: LayoutTests/fast/dom/DeviceOrientation/script-tests/basic-operation.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/basic-operation.js
diff --git a/LayoutTests/fast/dom/DeviceOrientation/script-tests/basic-operation.js b/LayoutTests/fast/dom/DeviceOrientation/script-tests/basic-operation.js
index aca94e21ba4e99fab35c456afe6853d536a444f5..41a012ae8d0a1852e98f04c64811c3144a9a1d90 100644
--- a/LayoutTests/fast/dom/DeviceOrientation/script-tests/basic-operation.js
+++ b/LayoutTests/fast/dom/DeviceOrientation/script-tests/basic-operation.js
@@ -3,9 +3,10 @@ description('Tests the basic operation of DeviceOrientation using the mock.');
var mockAlpha = 1.1;
var mockBeta = 2.2;
var mockGamma = 3.3;
+var mockAbsolute = true;
if (window.testRunner)
- testRunner.setMockDeviceOrientation(true, mockAlpha, true, mockBeta, true, mockGamma);
+ testRunner.setMockDeviceOrientation(true, mockAlpha, true, mockBeta, true, mockGamma, true, mockAbsolute);
else
debug('This test can not be run without the TestRunner');
@@ -15,6 +16,7 @@ window.addEventListener('deviceorientation', function(e) {
shouldBe('deviceOrientationEvent.alpha', 'mockAlpha');
shouldBe('deviceOrientationEvent.beta', 'mockBeta');
shouldBe('deviceOrientationEvent.gamma', 'mockGamma');
+ shouldBe('deviceOrientationEvent.absolute', 'mockAbsolute');
finishJSTest();
});

Powered by Google App Engine
This is Rietveld 408576698