OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../js/resources/js-test-pre.js"></script> | |
5 <script src="resources/shadow-dom.js"></script> | |
6 </head> | |
7 <body> | |
8 <script> | |
9 description("Tests for insertionParent with a shadow element."); | |
10 | |
11 document.body.appendChild( | |
12 createDOM('div', {}, | |
13 createDOM('div', {'id': 'host'}, | |
14 createShadowRoot( | |
15 createDOM('div', {'id': 'older-shadow-root-child'}))
, | |
16 createShadowRoot( | |
17 createDOM('shadow', {'id': 'shadow'}))))); | |
18 | |
19 document.body.offsetLeft; | |
20 | |
21 shouldBeEqualToString("getNodeInShadowTreeStack('host/older-shadow-root-child').
webkitInsertionParent.id", "shadow"); | |
22 shouldBeNull("getNodeInShadowTreeStack('host//shadow').webkitInsertionParent"); | |
23 </script> | |
24 <script src="../../js/resources/js-test-post.js"></script> | |
25 </body> | |
26 </html> | |
OLD | NEW |