| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |