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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/multiple-frames.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/multiple-frames.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/multiple-frames.html b/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/multiple-frames.html
deleted file mode 100644
index de8ad609c9aa7953f4056831eca391134c804c90..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/multiple-frames.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<script>
-description('Tests using DeviceOrientation from multiple frames.');
-
-var mockEvent = {alpha: 1.1, beta: 2.2, gamma: 3.3, absolute: true};
-if (window.testRunner)
- testRunner.setMockDeviceOrientation(true, mockEvent.alpha, true, mockEvent.beta, true, mockEvent.gamma, mockEvent.absolute);
-else
- debug('This test can not be run without the TestRunner');
-
-var deviceOrientationEvent;
-function checkOrientation(event) {
- deviceOrientationEvent = event;
- shouldBe('deviceOrientationEvent.alpha', 'mockEvent.alpha');
- shouldBe('deviceOrientationEvent.beta', 'mockEvent.beta');
- shouldBe('deviceOrientationEvent.gamma', 'mockEvent.gamma');
- shouldBe('deviceOrientationEvent.absolute', 'mockEvent.absolute');
-}
-
-var hasMainFrameEventFired = false;
-function mainFrameListener(event) {
- checkOrientation(event);
- hasMainFrameEventFired = true;
- maybeFinishTest();
-}
-
-var hasChildFrameEventFired = false;
-function childFrameListener(event) {
- checkOrientation(event);
- hasChildFrameEventFired = true;
- maybeFinishTest();
-}
-
-function maybeFinishTest() {
- if (hasMainFrameEventFired && hasChildFrameEventFired)
- finishJSTest();
-}
-
-var childFrame = document.createElement('iframe');
-document.body.appendChild(childFrame);
-childFrame.contentWindow.addEventListener('deviceorientation', childFrameListener);
-
-window.addEventListener('deviceorientation', mainFrameListener);
-
-window.jsTestIsAsync = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698