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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <title>Event propagation tests</title> 2 <title>Event propagation tests</title>
3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name>
4 <div id=log></div> 4 <div id=log></div>
5 <script src=../../../../resources/testharness.js></script> 5 <script src=../../../../resources/testharness.js></script>
6 <script src=../../../../resources/testharnessreport.js></script> 6 <script src=../../../../resources/testharnessreport.js></script>
7 <script> 7 <script>
8 "use strict"; 8 "use strict";
9 9
10 function testPropagationFlag(ev, expected, desc) { 10 function testPropagationFlag(ev, expected, desc) {
(...skipping 18 matching lines...) Expand all
29 ev.initEvent("foo", true, false); 29 ev.initEvent("foo", true, false);
30 testPropagationFlag(ev, true, "Reinitialized after stopPropagation()"); 30 testPropagationFlag(ev, true, "Reinitialized after stopPropagation()");
31 31
32 var ev = document.createEvent("Event"); 32 var ev = document.createEvent("Event");
33 ev.initEvent("foo", true, false); 33 ev.initEvent("foo", true, false);
34 ev.stopImmediatePropagation(); 34 ev.stopImmediatePropagation();
35 testPropagationFlag(ev, false, "After stopImmediatePropagation()"); 35 testPropagationFlag(ev, false, "After stopImmediatePropagation()");
36 ev.initEvent("foo", true, false); 36 ev.initEvent("foo", true, false);
37 testPropagationFlag(ev, true, "Reinitialized after stopImmediatePropagation()"); 37 testPropagationFlag(ev, true, "Reinitialized after stopImmediatePropagation()");
38 </script> 38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698