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

Unified Diff: LayoutTests/fast/regions/webkit-named-flow-event-to-null.html

Issue 17176018: [CSS Regions] Add new regionOversetChange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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/webkit-named-flow-event-to-null.html
diff --git a/LayoutTests/fast/regions/webkit-named-flow-event-to-null.html b/LayoutTests/fast/regions/webkit-named-flow-event-to-null.html
index 53f5dec2bd961b5bb9b78bbf4b175d5d3234a5d1..64fd8ad2d3ba6740fc476020163b21d8ee187d3f 100644
--- a/LayoutTests/fast/regions/webkit-named-flow-event-to-null.html
+++ b/LayoutTests/fast/regions/webkit-named-flow-event-to-null.html
@@ -36,7 +36,7 @@
<script>
-description("Tests regionLayoutEvent being dispatched when the content is removed");
+description("Tests regionOversetChange event being dispatched when the content is removed");
if (window.testRunner) {
testRunner.dumpAsText();
@@ -52,12 +52,12 @@ if (window.testRunner) {
}
var count = 0;
- var layoutUpdateDispatchedForNullFlow = false;
- function regionLayoutUpdated(event) {
+ var regionOversetDispatchedForNullFlow = false;
+ function regionOversetChanged(event) {
shouldBeEqualToString("event.target.name", "article");
if (++count > 1) {
- event.target.removeEventListener("webkitregionlayoutupdate", regionLayoutUpdated);
- layoutUpdateDispatchedForNullFlow = true;
+ event.target.removeEventListener("webkitregionoversetchange", regionOversetChanged);
+ regionOversetDispatchedForNullFlow = true;
return;
}
@@ -71,17 +71,17 @@ if (window.testRunner) {
debug("Removing article from flow");
el.style.webkitFlowInto = "none";
- setTimeout(checkIfEventDispatched, 500);
+ setTimeout(checkIfEventDispatched, 200);
}
function checkIfEventDispatched() {
- shouldBeFalse("layoutUpdateDispatchedForNullFlow");
+ shouldBeFalse("regionOversetDispatchedForNullFlow");
finishJSTest();
}
function startTest() {
var flow = getFlowByName("article");
- flow.addEventListener("webkitregionlayoutupdate", regionLayoutUpdated);
+ flow.addEventListener("webkitregionoversetchange", regionOversetChanged);
debug("Flow content");
flowContent("article");

Powered by Google App Engine
This is Rietveld 408576698