OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <script src="../resources/js-test.js"></script> | 2 <script src="../resources/js-test.js"></script> |
3 <script src="../fast/dom/shadow/resources/shadow-dom.js"></script> | 3 <script src="../fast/dom/shadow/resources/shadow-dom.js"></script> |
4 <body></body> | 4 <body></body> |
5 <script> | 5 <script> |
6 function prepareTree() { | 6 function prepareTree() { |
7 // Note: #target will be distributed to furthest <content>. | 7 // Note: #target will be distributed to furthest <content>. |
8 document.body.appendChild( | 8 document.body.appendChild( |
9 createDOM('div', {id: 'host_closed'}, | 9 createDOM('div', {id: 'host_closed'}, |
10 attachShadow({mode: 'closed'}, | 10 attachShadow({mode: 'closed'}, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 debug('\nDispaching a click event on #target, listening on #' + node.id + '.')
; | 46 debug('\nDispaching a click event on #target, listening on #' + node.id + '.')
; |
47 eventPath = null; | 47 eventPath = null; |
48 target.click(); | 48 target.click(); |
49 debug('Got event.composedPath() for #' + node.id + ':'); | 49 debug('Got event.composedPath() for #' + node.id + ':'); |
50 debug(dumpNodeList(eventPath)); | 50 debug(dumpNodeList(eventPath)); |
51 | 51 |
52 node.removeEventListener('click', clickHandler, false); | 52 node.removeEventListener('click', clickHandler, false); |
53 }); | 53 }); |
54 </script> | 54 </script> |
OLD | NEW |