OLD | NEW |
1 When we modify host children and get distributed nodes in nested ShadowDOM, dist
ribution should occur from the host. | 1 When we modify host children and get distributed nodes in nested ShadowDOM, dist
ribution should occur from the host. |
2 | 2 |
3 Adds a div to ShadowRoot. | 3 Adds a div to ShadowRoot. |
4 PASS content.getDistributedNodes().length is 2 | 4 PASS content.getDistributedNodes().length is 2 |
5 PASS content.getDistributedNodes().item(0) is div1 | 5 PASS content.getDistributedNodes().item(0) is div1 |
6 PASS content.getDistributedNodes().item(1) is addedDiv | 6 PASS content.getDistributedNodes().item(1) is addedDiv |
7 | 7 |
8 Adds a div as fallback content | 8 Adds a div as fallback content, which should not be used. |
9 PASS content.getDistributedNodes().length is 3 | 9 PASS content.getDistributedNodes().length is 2 |
10 PASS content.getDistributedNodes().item(0) is div1 | 10 PASS content.getDistributedNodes().item(0) is div1 |
11 PASS content.getDistributedNodes().item(1) is anotherAddedDiv | 11 PASS content.getDistributedNodes().item(1) is addedDiv |
12 PASS content.getDistributedNodes().item(2) is addedDiv | |
13 | 12 |
14 Removes the first added div | 13 Removes the first added div |
15 PASS content.getDistributedNodes().length is 2 | 14 PASS content.getDistributedNodes().length is 1 |
16 PASS content.getDistributedNodes().item(0) is div1 | 15 PASS content.getDistributedNodes().item(0) is div1 |
17 PASS content.getDistributedNodes().item(1) is anotherAddedDiv | |
18 | 16 |
19 Removes the second added div | 17 Removes the second added div |
20 PASS content.getDistributedNodes().length is 1 | 18 PASS content.getDistributedNodes().length is 1 |
21 PASS content.getDistributedNodes().item(0) is div1 | 19 PASS content.getDistributedNodes().item(0) is div1 |
22 | 20 |
23 PASS successfullyParsed is true | 21 PASS successfullyParsed is true |
24 | 22 |
25 TEST COMPLETE | 23 TEST COMPLETE |
26 | 24 |
OLD | NEW |