OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 <script src="resources/shadow-dom.js"></script> | 5 <script src="resources/shadow-dom.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="sandbox"></div> | 9 <div id="sandbox"></div> |
10 <pre id="console"></pre> | 10 <pre id="console"></pre> |
(...skipping 16 matching lines...) Expand all Loading... |
27 ['A', 'B', 'C', 'A/', 'A/E', 'A/F', 'A/X', 'A//', 'A//H', 'A//I', 'A//J'].forEac
h(function(path) { | 27 ['A', 'B', 'C', 'A/', 'A/E', 'A/F', 'A/X', 'A//', 'A//H', 'A//I', 'A//J'].forEac
h(function(path) { |
28 getNodeInTreeOfTrees(path).addEventListener('click', function(event) { | 28 getNodeInTreeOfTrees(path).addEventListener('click', function(event) { |
29 debug('\nevent.path on node ' + dumpNode(event.currentTarget)); | 29 debug('\nevent.path on node ' + dumpNode(event.currentTarget)); |
30 debug(dumpNodeList(event.path)); | 30 debug(dumpNodeList(event.path)); |
31 }); | 31 }); |
32 }); | 32 }); |
33 var clickEvent = document.createEvent("MouseEvents"); | 33 var clickEvent = document.createEvent("MouseEvents"); |
34 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, fa
lse, false, false, 0, null); | 34 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, fa
lse, false, false, 0, null); |
35 document.getElementById('C').dispatchEvent(clickEvent); | 35 document.getElementById('C').dispatchEvent(clickEvent); |
36 </script> | 36 </script> |
37 <script src="../../js/resources/js-test-post.js"></script> | |
38 </body> | 37 </body> |
39 </html> | 38 </html> |
OLD | NEW |