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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/resources/basic-operation.js

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/resources/basic-operation.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/resources/basic-operation.js b/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/resources/basic-operation.js
deleted file mode 100644
index f945f2b34ea232913abcb388d03c34e3ac694639..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/resources/basic-operation.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// This test can be used to test device orientation event types: 'deviceorientation' and 'deviceorientationabsolute'.
-function testBasicOperation(eventType) {
- window.jsTestIsAsync = true;
- if (!window.testRunner)
- debug('This test can not be run without the TestRunner');
-
- mockAlpha = 1.1;
- mockBeta = 2.2;
- mockGamma = 3.3;
- mockAbsolute = true;
- testRunner.setMockDeviceOrientation(true, mockAlpha, true, mockBeta, true, mockGamma, mockAbsolute);
-
- window.addEventListener(eventType, function(e) {
- event = e;
- shouldBe('event.alpha', 'mockAlpha');
- shouldBe('event.beta', 'mockBeta');
- shouldBe('event.gamma', 'mockGamma');
- shouldBe('event.absolute', 'mockAbsolute');
- finishJSTest();
- });
-}

Powered by Google App Engine
This is Rietveld 408576698