OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html><body> | 2 <html><body> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 | 4 |
5 <p>When we modify host children and get distributed nodes in nested ShadowDOM, d
istribution should occur from the host.</p> | 5 <p>When we modify host children and get distributed nodes in nested ShadowDOM, d
istribution should occur from the host.</p> |
6 | 6 |
7 <div id="container"> | 7 <div id="container"> |
8 <div id="host1"></div> | 8 <div id="host1"></div> |
9 </div> | 9 </div> |
10 <pre id="console"></pre> | 10 <pre id="console"></pre> |
11 | 11 |
12 <script> | 12 <script> |
13 jsTestIsAsync = true; | 13 jsTestIsAsync = true; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 anotherAddedDiv.remove(); | 63 anotherAddedDiv.remove(); |
64 shouldBe('content.getDistributedNodes().length', '1'); | 64 shouldBe('content.getDistributedNodes().length', '1'); |
65 shouldBe('content.getDistributedNodes().item(0)', 'div1'); | 65 shouldBe('content.getDistributedNodes().item(0)', 'div1'); |
66 debug(''); | 66 debug(''); |
67 | 67 |
68 container.innerHTML = ""; | 68 container.innerHTML = ""; |
69 finishJSTest(); | 69 finishJSTest(); |
70 }, 0); | 70 }, 0); |
71 </script> | 71 </script> |
72 </body></html> | 72 </body></html> |
OLD | NEW |