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="../../../resources/js-test.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 <script> | 8 <script> |
9 description("Tests for getDestinationInsertionPoints() which involves re-distrib
ution."); | 9 description("Tests for getDestinationInsertionPoints() which involves re-distrib
ution."); |
10 | 10 |
11 document.body.appendChild( | 11 document.body.appendChild( |
12 createDOM('div', {}, | 12 createDOM('div', {}, |
13 createDOM('div', {'id': 'host-1'}, | 13 createDOM('div', {'id': 'host-1'}, |
14 createShadowRoot( | 14 createShadowRoot( |
15 createDOM('div', {'id': 'host-2'}, | 15 createDOM('div', {'id': 'host-2'}, |
16 createShadowRoot( | 16 createShadowRoot( |
17 createDOM('content', {'id': 'content-2
'})), | 17 createDOM('content', {'id': 'content-2
'})), |
18 createDOM('content', {'id': 'content-1'}))
), | 18 createDOM('content', {'id': 'content-1'}))
), |
19 createDOM('div', {'id': 'child-1'})))); | 19 createDOM('div', {'id': 'child-1'})))); |
20 | 20 |
21 shouldBeEqualAsArray(document.getElementById('child-1').getDestinationInsertionP
oints(), | 21 shouldBeEqualAsArray(document.getElementById('child-1').getDestinationInsertionP
oints(), |
22 [getNodeInTreeOfTrees('host-1/content-1'), getNodeInTreeOfT
rees('host-1/host-2/content-2')]); | 22 [getNodeInTreeOfTrees('host-1/content-1'), getNodeInTreeOfT
rees('host-1/host-2/content-2')]); |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |