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 15 matching lines...) Expand all Loading... |
26 ['A', 'B', 'C', 'A/', 'A/E', 'A/F', 'A//', 'A//H', 'A//I', 'A//J'].forEach(funct
ion(path) { | 26 ['A', 'B', 'C', 'A/', 'A/E', 'A/F', 'A//', 'A//H', 'A//I', 'A//J'].forEach(funct
ion(path) { |
27 getNodeInTreeOfTrees(path).addEventListener('click', function(event) { | 27 getNodeInTreeOfTrees(path).addEventListener('click', function(event) { |
28 debug('\nevent.path on node ' + dumpNode(event.currentTarget)); | 28 debug('\nevent.path on node ' + dumpNode(event.currentTarget)); |
29 debug(dumpNodeList(event.path)); | 29 debug(dumpNodeList(event.path)); |
30 }); | 30 }); |
31 }); | 31 }); |
32 var clickEvent = document.createEvent("MouseEvents"); | 32 var clickEvent = document.createEvent("MouseEvents"); |
33 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, fa
lse, false, false, 0, null); | 33 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, fa
lse, false, false, 0, null); |
34 document.getElementById('C').dispatchEvent(clickEvent); | 34 document.getElementById('C').dispatchEvent(clickEvent); |
35 </script> | 35 </script> |
36 <script src="../../js/resources/js-test-post.js"></script> | |
37 </body> | 36 </body> |
38 </html> | 37 </html> |
OLD | NEW |