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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-propagation.html

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/web-platform-tests/dom/events/Event-propagation.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-propagation.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-propagation.html
deleted file mode 100644
index 15882ed11cafa0125dd578d73b4aabff3b5496d5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-propagation.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!doctype html>
-<title>Event propagation tests</title>
-<link rel=author title="Aryeh Gregor" href=ayg@aryeh.name>
-<div id=log></div>
-<script src=../../../../resources/testharness.js></script>
-<script src=../../../../resources/testharnessreport.js></script>
-<script>
-"use strict";
-
-function testPropagationFlag(ev, expected, desc) {
- test(function() {
- var called = false;
- var callback = function() { called = true };
- document.head.addEventListener("foo", callback);
- document.head.dispatchEvent(ev);
- // Gecko resets the flags after dispatching; it will happily dispatch
- // the event the second time around.
- document.head.dispatchEvent(ev);
- assert_equals(called, expected, "Propagation flag");
- document.head.removeEventListener("foo", callback);
- }, desc);
-}
-
-var ev = document.createEvent("Event");
-ev.initEvent("foo", true, false);
-testPropagationFlag(ev, true, "Newly-created Event");
-ev.stopPropagation();
-testPropagationFlag(ev, false, "After stopPropagation()");
-ev.initEvent("foo", true, false);
-testPropagationFlag(ev, true, "Reinitialized after stopPropagation()");
-
-var ev = document.createEvent("Event");
-ev.initEvent("foo", true, false);
-ev.stopImmediatePropagation();
-testPropagationFlag(ev, false, "After stopImmediatePropagation()");
-ev.initEvent("foo", true, false);
-testPropagationFlag(ev, true, "Reinitialized after stopImmediatePropagation()");
-</script>

Powered by Google App Engine
This is Rietveld 408576698