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