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

Unified Diff: LayoutTests/platform/chromium/accessibility/scroll-to-make-visible-div-overflow.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-make-visible-div-overflow.html
diff --git a/LayoutTests/platform/chromium/accessibility/scroll-to-make-visible-div-overflow.html b/LayoutTests/platform/chromium/accessibility/scroll-to-make-visible-div-overflow.html
deleted file mode 100644
index 497ce376f51c84ad2b4b5f46f021662b187d817e..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/accessibility/scroll-to-make-visible-div-overflow.html
+++ /dev/null
@@ -1,64 +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 id="container" style="height: 100px; overflow: scroll">
- <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>
-</div>
-
-<div id="console"></div>
-
-<script>
-description("Tests that scrolling to make an element visible successfully scrolls an arbitrary HTML element that has CSS overflow set to 'scroll'.");
-
-function runTest() {
- window.container = document.getElementById("container");
- var upperTarget = document.getElementById("upper_target");
- var lowerTarget = document.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).
- container.scrollTop = 0;
- shouldBe("container.scrollTop", "0");
-
- // Scroll to make lower target visible and check.
- if (window.accessibilityController)
- lowerTargetAccessibleObject.scrollToMakeVisible();
- var top = lowerTarget.offsetTop - container.offsetTop;
- window.minYOffset = top + lowerTarget.offsetHeight - container.offsetHeight;
- window.maxYOffset = top;
- shouldBe("container.scrollTop >= minYOffset", "true");
- shouldBe("container.scrollTop <= maxYOffset", "true");
-
- // Scroll to make upper target visible and check.
- if (window.accessibilityController)
- upperTargetAccessibleObject.scrollToMakeVisible();
- top = upperTarget.offsetTop - container.offsetTop;
- window.minYOffset = top + upperTarget.offsetHeight - container.offsetHeight;
- window.maxYOffset = top;
- shouldBe("container.scrollTop >= minYOffset", "true");
- shouldBe("container.scrollTop <= maxYOffset", "true");
-
- finishJSTest();
-}
-
-runTest();
-
-</script>
-
-<script src="../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698