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 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="host"></div> | 7 <div id="host"></div> |
8 <script> | 8 <script> |
9 description("Tests to ensure that ShadowRoot.getElementById works even after mut
ation"); | 9 description("Tests to ensure that ShadowRoot.getElementById works even after mut
ation"); |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 shadow.insertBefore(e0cParent, e0b); | 30 shadow.insertBefore(e0cParent, e0b); |
31 shouldBe("e0c", "shadow.getElementById('foo')"); | 31 shouldBe("e0c", "shadow.getElementById('foo')"); |
32 | 32 |
33 shadow.removeChild(e0cParent); | 33 shadow.removeChild(e0cParent); |
34 shouldBe("e0b", "shadow.getElementById('foo')"); | 34 shouldBe("e0b", "shadow.getElementById('foo')"); |
35 shadow.removeChild(e0b); | 35 shadow.removeChild(e0b); |
36 shouldBe("e0a", "shadow.getElementById('foo')"); | 36 shouldBe("e0a", "shadow.getElementById('foo')"); |
37 shadow.removeChild(e0a); | 37 shadow.removeChild(e0a); |
38 shouldBe("null", "shadow.getElementById('foo')"); | 38 shouldBe("null", "shadow.getElementById('foo')"); |
39 </script> | 39 </script> |
40 <script src="../../js/resources/js-test-post.js"></script> | |
41 </body> | 40 </body> |
42 </html> | 41 </html> |
OLD | NEW |