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

Unified Diff: LayoutTests/platform/chromium/accessibility/scroll-to-global-point-iframe-nested.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/accessibility/scroll-to-global-point-iframe-nested.html
diff --git a/LayoutTests/platform/chromium/accessibility/scroll-to-global-point-iframe-nested.html b/LayoutTests/platform/chromium/accessibility/scroll-to-global-point-iframe-nested.html
deleted file mode 100644
index 9e4c2f359e26848711ac8c6023c37588ad2cb0bf..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/accessibility/scroll-to-global-point-iframe-nested.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css">
-<script src="../../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-
-<p id="description"></p>
-
-<div style="border: 1px solid #000; height: 5000px;">5000-pixel box</div>
-
-<!-- The contents of this iframe, more nicely formatted:
- <body>
- <style>
- button {
- border: 0;
- }
- </style>
- <div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div>
- <div id='container' style='height: 100px; overflow: scroll'>
- <div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div>
- <button id='target'>Target</button>
- <div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div>
- </div>
- <div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div>
- </body>
- -->
-<iframe id="frame" src="data:text/html,<body><style>button { border: 0; }</style><div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div><div id='container' style='height: 100px; overflow: scroll'><div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div><button id='target'>Target</button><div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div></div><div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div></body>"></iframe>
-
-<div style="border: 1px solid #000; height: 5000px;">5000-pixel box</div>
-
-<div id="console"></div>
-
-<script>
-description("Tests that scrolling to move an element to a specific point successfully scrolls both an iframe and a div with overflow.");
-
-if (window.testRunner)
- testRunner.waitUntilDone();
-
-window.jsTestIsAsync = true;
-
-function runTest() {
- window.frame = document.getElementById("frame");
- window.frameWindow = frame.contentWindow;
- window.frameDoc = frameWindow.document;
- window.container = frameDoc.getElementById("container");
- window.target = frameDoc.getElementById("target");
-
- if (window.accessibilityController) {
- target.focus();
- var targetAccessibleObject = accessibilityController.focusedElement;
- }
-
- // Reset the initial scroll position (since calling focus() can scroll the page too).
- window.scrollTo(0, 0);
- frameWindow.scrollTo(0, 0);
- container.scrollTop = 0;
- shouldBe("window.pageYOffset", "0");
- shouldBe("frameWindow.pageYOffset", "0");
- shouldBe("container.scrollTop", "0");
-
- // Scroll to various locations and check.
- if (window.accessibilityController)
- targetAccessibleObject.scrollToGlobalPoint(0, 0);
- shouldBe("target.getBoundingClientRect().top", "0");
- if (window.accessibilityController)
- targetAccessibleObject.scrollToGlobalPoint(0, 300);
- shouldBe("target.getBoundingClientRect().top", "300");
- if (window.accessibilityController)
- targetAccessibleObject.scrollToGlobalPoint(0, 3000);
- shouldBe("target.getBoundingClientRect().top", "3000");
-
- finishJSTest();
-}
-
-window.addEventListener('load', function() {
- setTimeout(runTest, 10);
-}, false);
-
-</script>
-
-<script src="../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698