| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Shadow DOM: Event composed</title> | 2 <title>Shadow DOM: Event composed</title> |
| 3 <meta name="author" title="Hayato Ito" href="mailto:hayato@google.com"> | 3 <meta name="author" title="Hayato Ito" href="mailto:hayato@google.com"> |
| 4 <script src="../resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script src="resources/shadow-dom.js"></script> | 6 <script src="resources/shadow-dom.js"></script> |
| 7 <div id=host> | 7 <div id=host> |
| 8 <template id=shadowRoot data-mode=open> | 8 <template id=shadowRoot data-mode=open> |
| 9 <div id=target></div> | 9 <div id=target></div> |
| 10 </template> | 10 </template> |
| 11 </div> | 11 </div> |
| 12 <script> | 12 <script> |
| 13 test(() => { | 13 test(() => { |
| 14 const e = new Event('test'); | 14 const e = new Event('test'); |
| 15 assert_equals(e.composed, false); | 15 assert_equals(e.composed, false); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 ['shadowRoot', 'target', null, expectedPath], | 72 ['shadowRoot', 'target', null, expectedPath], |
| 73 ['host', 'host', null, expectedPath]]); | 73 ['host', 'host', null, expectedPath]]); |
| 74 } | 74 } |
| 75 | 75 |
| 76 test(() => { | 76 test(() => { |
| 77 assertUAComposed('click', (target) => { target.click(); }); | 77 assertUAComposed('click', (target) => { target.click(); }); |
| 78 }, 'A UA click event should not be scoped'); | 78 }, 'A UA click event should not be scoped'); |
| 79 | 79 |
| 80 // TODO(hayato): Test other UIEvents. | 80 // TODO(hayato): Test other UIEvents. |
| 81 </script> | 81 </script> |
| OLD | NEW |