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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/scroll-to-make-visible-iframe.html

Issue 1761633002: One accessibility tree per frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix is-richly-editable test Created 4 years, 9 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/accessibility/scroll-to-make-visible-iframe.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/scroll-to-make-visible-iframe.html b/third_party/WebKit/LayoutTests/accessibility/scroll-to-make-visible-iframe.html
deleted file mode 100644
index 0f168dd7d2321456984c6bc30574aa6300643ed2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/accessibility/scroll-to-make-visible-iframe.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-</head>
-<body>
-
-<p id="description"></p>
-
-<iframe id="frame" src="data:text/html,<body><button id='upper_target'>Upper Target</button><div style='border: 1px solid #000; height: 5000px;'>5000-pixel box</div><button id='lower_target'>Lower Target</button></body>"></iframe>
-
-<div id="console"></div>
-
-<script>
-description("Tests that scrolling to make an element visible successfully scrolls an iframe.");
-
-if (window.testRunner)
- testRunner.waitUntilDone();
-
-window.jsTestIsAsync = true;
-
-function runTest() {
- window.frame = document.getElementById("frame");
- window.frameWindow = frame.contentWindow;
- window.frameDoc = frameWindow.document;
-
- var upperTarget = frameDoc.getElementById("upper_target");
- var lowerTarget = frameDoc.getElementById("lower_target");
-
- if (window.accessibilityController) {
- lowerTarget.focus();
- var lowerTargetAccessibleObject = accessibilityController.focusedElement;
- upperTarget.focus();
- var upperTargetAccessibleObject = accessibilityController.focusedElement;
- }
-
- // Reset the initial scroll position (since calling focus() can scroll the page too).
- frameWindow.scrollTo(0, 0);
- shouldBe("frameWindow.pageYOffset", "0");
-
- // Scroll to make lower target visible and check.
- if (window.accessibilityController)
- lowerTargetAccessibleObject.scrollToMakeVisible();
- window.minYOffset = lowerTarget.offsetTop + lowerTarget.offsetHeight - frameWindow.innerHeight;
- window.maxYOffset = lowerTarget.offsetTop;
- shouldBe("frameWindow.pageYOffset >= minYOffset", "true");
- shouldBe("frameWindow.pageYOffset <= maxYOffset", "true");
-
- // Scroll to make upper target visible and check.
- if (window.accessibilityController)
- upperTargetAccessibleObject.scrollToMakeVisible();
- window.minYOffset = upperTarget.offsetTop + upperTarget.offsetHeight - frameWindow.innerHeight;
- window.maxYOffset = upperTarget.offsetTop;
- shouldBe("frameWindow.pageYOffset >= minYOffset", "true");
- shouldBe("frameWindow.pageYOffset <= maxYOffset", "true");
-
- finishJSTest();
-}
-
-window.addEventListener('load', function() {
- setTimeout(runTest, 10);
-}, false);
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698