OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 <script src="resources/shadow-dom.js"></script> | 5 <script src="resources/shadow-dom.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 | 8 |
9 <div id="container"></div> | 9 <div id="container"></div> |
10 <pre id="console"></pre> | 10 <pre id="console"></pre> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 assertNodeList(content.getDistributedNodes(), [child]); | 52 assertNodeList(content.getDistributedNodes(), [child]); |
53 assertNodeList(content2.getDistributedNodes(), [child, rootChildChild]); | 53 assertNodeList(content2.getDistributedNodes(), [child, rootChildChild]); |
54 debug(''); | 54 debug(''); |
55 | 55 |
56 debug('rootChild is disconnected. Now content became inactive, so content elemen
t itself should be distributed.'); | 56 debug('rootChild is disconnected. Now content became inactive, so content elemen
t itself should be distributed.'); |
57 shadowRoot.removeChild(rootChild); | 57 shadowRoot.removeChild(rootChild); |
58 assertNodeList(content.getDistributedNodes(), []); | 58 assertNodeList(content.getDistributedNodes(), []); |
59 assertNodeList(content2.getDistributedNodes(), [content, rootChildChild]); | 59 assertNodeList(content2.getDistributedNodes(), [content, rootChildChild]); |
60 debug(''); | 60 debug(''); |
61 </script> | 61 </script> |
62 <script src="../../js/resources/js-test-post.js"></script> | |
63 </body> | 62 </body> |
64 </html> | 63 </html> |
OLD | NEW |