| 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='host'> | 5 <div id='host'> |
| 6 <template data-mode='open'> | 6 <template data-mode='open'> |
| 7 <div id='shadow-child1'></div> | 7 <div id='shadow-child1'></div> |
| 8 <slot></slot> | 8 <slot></slot> |
| 9 <slot name='slot1'></slot> | 9 <slot name='slot1'></slot> |
| 10 <div id='shadow-child2'></div> | 10 <div id='shadow-child2'></div> |
| 11 </template> | 11 </template> |
| 12 <div id='child1' slot='slot1'></div> | 12 <div id='child1' slot='slot1'></div> |
| 13 Hello | 13 Hello |
| 14 <div id='child2'></div> | 14 <div id='child2'></div> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 test(() => { | 47 test(() => { |
| 48 assert_array_equals(defaultSlot.getAssignedNodes({flatten: true}), [textHello,
child2, textWorld]); | 48 assert_array_equals(defaultSlot.getAssignedNodes({flatten: true}), [textHello,
child2, textWorld]); |
| 49 assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child1]); | 49 assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child1]); |
| 50 }, "getAssignedNodes"); | 50 }, "getAssignedNodes"); |
| 51 | 51 |
| 52 add_completion_callback(() => { | 52 add_completion_callback(() => { |
| 53 if (window.testRunner) | 53 if (window.testRunner) |
| 54 host.style.display = "none"; | 54 host.style.display = "none"; |
| 55 }); | 55 }); |
| 56 </script> | 56 </script> |
| OLD | NEW |