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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-dispatch-multiple-stopPropagation.html

Issue 2418363002: Fix case for event dispatch mutiple after stopPropagation (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-dispatch-multiple-stopPropagation-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title> Multiple dispatchEvent() and stopPropagation() </title> 4 <title> Multiple dispatchEvent() and stopPropagation() </title>
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 </head> 7 </head>
8 <body> 8 <body>
9 <div id=log></div> 9 <div id=log></div>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 target.addEventListener(event_type, test_event, false); 32 target.addEventListener(event_type, test_event, false);
33 parent.addEventListener(event_type, test_event, false); 33 parent.addEventListener(event_type, test_event, false);
34 document.addEventListener(event_type, test_event, false); 34 document.addEventListener(event_type, test_event, false);
35 window.addEventListener(event_type, test_event, false); 35 window.addEventListener(event_type, test_event, false);
36 36
37 actual_result = []; 37 actual_result = [];
38 target.dispatchEvent(evt); 38 target.dispatchEvent(evt);
39 assert_array_equals(actual_result, [target, parent]); 39 assert_array_equals(actual_result, [target, parent]);
40 40
41 evt = document.createEvent("Event");
42 evt.initEvent(event_type, true, true);
41 actual_result = []; 43 actual_result = [];
42 parent.dispatchEvent(evt); 44 parent.dispatchEvent(evt);
43 assert_array_equals(actual_result, [parent]); 45 assert_array_equals(actual_result, [parent]);
44 46
47 evt = document.createEvent("Event");
48 evt.initEvent(event_type, true, true);
45 actual_result = []; 49 actual_result = [];
46 document.dispatchEvent(evt); 50 document.dispatchEvent(evt);
47 assert_array_equals(actual_result, [document, window]); 51 assert_array_equals(actual_result, [document, window]);
48 }); 52 });
49 </script> 53 </script>
50 </body> 54 </body>
51 </html> 55 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-dispatch-multiple-stopPropagation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698