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

Unified Diff: LayoutTests/fast/regions/auto-size/autoheight-regionlayoutupdate-multipletimes.html

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: LayoutTests/fast/regions/auto-size/autoheight-regionlayoutupdate-multipletimes.html
diff --git a/LayoutTests/fast/regions/auto-size/autoheight-regionlayoutupdate-multipletimes.html b/LayoutTests/fast/regions/auto-size/autoheight-regionlayoutupdate-multipletimes.html
deleted file mode 100644
index a71da0a1832ed42d45fb0bc682a04fd714be3d8d..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/auto-size/autoheight-regionlayoutupdate-multipletimes.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <script src="../../../resources/js-test.js"></script>
- <script src="../resources/helper.js"></script>
- <style>
- .notVisible { visibility: hidden; }
- .flow { -webkit-flow-into: flow; }
- #article { width: 50px; height: 50px; background-color: green; }
- #region { -webkit-flow-from: flow; }
- </style>
- </head>
- <body>
- <div id="eventCount"></div>
- <div id="article"></div>
- <div id="region"></div>
- <script>
- description("Test for WebKitBug 102101 [CSS Regions] regionlayoutupdate event fires continuously");
-
- if (window.testRunner) {
- window.testRunner.dumpAsText();
- window.testRunner.waitUntilDone();
- }
-
- window.jsTestIsAsync = true;
-
- var eventDispatchCount = 0;
- var timeoutID;
-
- function flowThreadUpdated(event) {
- if (++eventDispatchCount > 1) {
- endTest();
- return;
- }
-
- // Updating the content of eventCount element should not trigger a layout
- // on the auto-height region.
- document.getElementById("eventCount").textContent = eventDispatchCount;
- }
-
- function startTest() {
- getFlowByName("flow").addEventListener("webkitregionlayoutupdate", flowThreadUpdated);
- document.getElementById("article").className = "flow";
- timeoutID = window.setTimeout(endTest, 500);
- }
-
- function endTest() {
- window.clearTimeout(timeoutID);
- getFlowByName("flow").removeEventListener("webkitregionlayoutupdate", flowThreadUpdated);
-
- document.getElementById("eventCount").className = "notVisible";
- document.getElementById("region").className = "notVisible";
-
- if (eventDispatchCount > 1)
- debug("FAIL The regionlayoutupdate event fired twice instead of once.")
- else
- debug("PASS The regionlayoutupdate fired only once.");
- finishJSTest();
- }
-
- window.addEventListener("load", startTest);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698