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='../fast/dom/shadow/resources/shadow-dom.js'></script> |
5 <div id='wrapper'> | 5 <div id='wrapper'> |
6 <slot id='slot1'></slot> | 6 <slot id='slot1'></slot> |
7 <slot id='slot2'> | 7 <slot id='slot2'> |
8 <div id='child1'></div> | 8 <div id='child1'></div> |
9 </slot> | 9 </slot> |
10 <slot id='slot3'> | 10 <slot id='slot3'> |
11 <div id='child2'></div> | 11 <div id='child2'></div> |
12 <slot id='slot4'> | 12 <slot id='slot4'> |
13 <div id='child3'></div> | 13 <div id='child3'></div> |
14 <div id='child4'></div> | 14 <div id='child4'></div> |
(...skipping 18 matching lines...) Expand all Loading... |
33 assert_array_equals(slot4.getAssignedNodes(), []); | 33 assert_array_equals(slot4.getAssignedNodes(), []); |
34 }, "getAssignedNodes"); | 34 }, "getAssignedNodes"); |
35 | 35 |
36 test(() => { | 36 test(() => { |
37 assert_array_equals(slot1.getAssignedNodes({flatten: true}), []); | 37 assert_array_equals(slot1.getAssignedNodes({flatten: true}), []); |
38 assert_array_equals(slot2.getAssignedNodes({flatten: true}), [child1]); | 38 assert_array_equals(slot2.getAssignedNodes({flatten: true}), [child1]); |
39 assert_array_equals(slot3.getAssignedNodes({flatten: true}), [child2, child3,
child4]); | 39 assert_array_equals(slot3.getAssignedNodes({flatten: true}), [child2, child3,
child4]); |
40 assert_array_equals(slot4.getAssignedNodes({flatten: true}), [child3, child4])
; | 40 assert_array_equals(slot4.getAssignedNodes({flatten: true}), [child3, child4])
; |
41 }, "getAssignedNodes({flatten: true})"); | 41 }, "getAssignedNodes({flatten: true})"); |
42 </script> | 42 </script> |
OLD | NEW |