OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 <script src="resources/polyfill.js"></script> | |
6 | 5 |
7 <div id="container"></div> | 6 <div id="container"></div> |
8 <pre id="console"></pre> | 7 <pre id="console"></pre> |
9 | 8 |
10 <script> | 9 <script> |
11 description("Tests to ensure ShadowRoot.getElementById works after complex DOM m
anipulation."); | 10 description("Tests to ensure ShadowRoot.getElementById works after complex DOM m
anipulation."); |
12 | 11 |
13 function createDiv(id) | 12 function createDiv(id) |
14 { | 13 { |
15 var div = document.createElement('div'); | 14 var div = document.createElement('div'); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 68 |
70 shouldBe('document.getElementById("A")', 'null'); | 69 shouldBe('document.getElementById("A")', 'null'); |
71 shouldBe('shadowRootA.getElementById("B")', 'B'); | 70 shouldBe('shadowRootA.getElementById("B")', 'B'); |
72 shouldBe('shadowRootB.getElementById("C")', 'null'); | 71 shouldBe('shadowRootB.getElementById("C")', 'null'); |
73 shouldBe('shadowRootC.getElementById("D")', 'null'); | 72 shouldBe('shadowRootC.getElementById("D")', 'null'); |
74 | 73 |
75 </script> | 74 </script> |
76 <script src="../../js/resources/js-test-post.js"></script> | 75 <script src="../../js/resources/js-test-post.js"></script> |
77 </body> | 76 </body> |
78 </html> | 77 </html> |
OLD | NEW |