| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.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 that getDestinationInsertionPoints() should skip insertion po
ints in user-agent shadow roots."); | 9 description("Tests that getDestinationInsertionPoints() should skip insertion po
ints in user-agent shadow roots."); |
| 10 | 10 |
| 11 document.body.appendChild( | 11 document.body.appendChild( |
| 12 createDOM('div', {}, | 12 createDOM('div', {}, |
| 13 createDOM('div', {'id': 'host'}, | 13 createDOM('div', {'id': 'host'}, |
| 14 createShadowRoot( | 14 createShadowRoot( |
| 15 createDOM('detail', {'id': 'detail'}, | 15 createDOM('detail', {'id': 'detail'}, |
| 16 createDOM('div', {'id': 'detail-child'}), | 16 createDOM('div', {'id': 'detail-child'}), |
| 17 createDOM('content', {'id': 'content'}))), | 17 createDOM('content', {'id': 'content'}))), |
| 18 createDOM('div', {'id': 'host-child'})))); | 18 createDOM('div', {'id': 'host-child'})))); |
| 19 | 19 |
| 20 shouldBeEqualAsArray(document.getElementById('host-child').getDestinationInserti
onPoints(), | 20 shouldBeEqualAsArray(document.getElementById('host-child').getDestinationInserti
onPoints(), |
| 21 [getNodeInTreeOfTrees('host/content')]); | 21 [getNodeInComposedTree('host/content')]); |
| 22 shouldBeZero("getNodeInTreeOfTrees('host/detail-child').getDestinationInsertionP
oints().length"); | 22 shouldBeZero("getNodeInComposedTree('host/detail-child').getDestinationInsertion
Points().length"); |
| 23 </script> | 23 </script> |
| 24 </body> | 24 </body> |
| 25 </html> | 25 </html> |
| OLD | NEW |