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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/imagemap-scroll.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month 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/images/imagemap-scroll.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/imagemap-scroll.html b/third_party/WebKit/LayoutTests/fast/images/imagemap-scroll.html
deleted file mode 100644
index 36d389ab291a61d59cba911f37d4bed5b4fc1b5d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/imagemap-scroll.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<html>
-<head>
-<script>
-function log(message)
-{
- var element = document.createElement("p");
- element.appendChild(document.createTextNode(message));
- document.getElementById("results").appendChild(element);
-}
-function runTest()
-{
- if (window.testRunner)
- testRunner.dumpAsText();
- if (document.scrollingElement.scrollTop == 0)
- log("PASS: Document is starting scrolled to top.");
- else
- log("FAIL: Document is starting scrolled to " + document.scrollingElement.scrollTop + ".");
- document.getElementById("area").focus();
- if (document.scrollingElement.scrollTop > 4000 && document.scrollingElement.scrollTop < 6000)
- log("PASS: Focusing area element caused the image to scroll into view.");
- else
- log("FAIL: Document is scrolled to " + document.scrollingElement.scrollTop + " after focusing area element.");
- document.scrollingElement.scrollTop = 0;
- if (document.scrollingElement.scrollTop == 0)
- log("PASS: Document is scrolled to top once again.");
- else
- log("FAIL: Document should be scrolled to top but is scrolled to " + document.scrollingElement.scrollTop + ".");
- document.getElementById("area").blur();
- if (document.scrollingElement.scrollTop == 0)
- log("PASS: Document is still scrolled to top after removing focus from area element.");
- else
- log("FAIL: Document is scrolled to " + document.scrollingElement.scrollTop + " after removing focus from area element.");
- document.scrollingElement.scrollTop = 0;
- document.body.removeChild(document.getElementById("test"));
- log("TEST COMPLETE");
-}
-</script>
-</head>
-<body onload="runTest()">
-<div id="results">
-<p>This tests to be sure that focusing an area element triggers scrolling and removing focus from it does not.</p>
-</div>
-<div id="test">
-<div style="height:5000px"></div>
-<map name="imagemap">
- <area id="area" shape="rect" coords="0,0,128,128" href="#dummy">
-</map>
-<img src="resources/mu.png" width="128" height="128" usemap="#imagemap" ismap>
-<div style="height:5000px"></div>
-<div>
-</body>
-</head>
-</html>

Powered by Google App Engine
This is Rietveld 408576698