OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src='../resources/testharness.js'></script> | 2 <script src='../resources/testharness.js'></script> |
3 <script src='../resources/testharnessreport.js'></script> | 3 <script src='../resources/testharnessreport.js'></script> |
4 <script src='resources/shadow-dom.js'></script> | 4 <script src='resources/shadow-dom.js'></script> |
5 <div id='host1'> | 5 <div id='host1'> |
6 <input id='input1' slot='slot1'> | 6 <input id='input1' slot='slot1'> |
7 <template data-mode='open'> | 7 <template data-mode='open'> |
8 <slot name='slot1'></slot> | 8 <slot name='slot1'></slot> |
9 </template> | 9 </template> |
10 </div> | 10 </div> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 var input3 = document.getElementById('input3') | 74 var input3 = document.getElementById('input3') |
75 var inputParent = document.getElementById('input-parent'); | 75 var inputParent = document.getElementById('input-parent'); |
76 input3.onfocus = function(e) { | 76 input3.onfocus = function(e) { |
77 var expected_array3 = [input3, inputParent, slot3, shadowRoot2, host4, docum
ent.body, document.documentElement, document, window]; | 77 var expected_array3 = [input3, inputParent, slot3, shadowRoot2, host4, docum
ent.body, document.documentElement, document, window]; |
78 assert_array_equals(e.composedPath(), expected_array3); | 78 assert_array_equals(e.composedPath(), expected_array3); |
79 }; | 79 }; |
80 input3.focus(); | 80 input3.focus(); |
81 }, 'EventPath works fine when event happens to a descendant of a slotted element
.'); | 81 }, 'EventPath works fine when event happens to a descendant of a slotted element
.'); |
82 | 82 |
83 </script> | 83 </script> |
OLD | NEW |