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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-propagation.html

Issue 2273143002: Update web-platform-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update baseline Created 4 years, 4 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/imported/wpt/dom/events/Event-propagation.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-propagation.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-propagation.html
index c57c7e9b255653e1ef6e08036f74628006a20ecd..6fc9701012b89c17f9557439af297f2f81665823 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-propagation.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-propagation.html
@@ -13,10 +13,11 @@ function testPropagationFlag(ev, expected, desc) {
var callback = function() { called = true };
document.head.addEventListener("foo", callback);
document.head.dispatchEvent(ev);
- // Gecko resets the flags after dispatching; it will happily dispatch
+ assert_equals(called, expected, "Propagation flag");
+ // dispatchEvent resets the propagation flags so it will happily dispatch
// the event the second time around.
document.head.dispatchEvent(ev);
- assert_equals(called, expected, "Propagation flag");
+ assert_equals(called, true, "Propagation flag after first dispatch");
document.head.removeEventListener("foo", callback);
}, desc);
}

Powered by Google App Engine
This is Rietveld 408576698