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 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div> | 7 <div> |
8 <shadow id="shadow"></shadow> | 8 <shadow id="shadow"></shadow> |
9 </div> | 9 </div> |
10 <script> | 10 <script> |
11 description("This test ensures that the shadow element is available.") | 11 description("This test ensures that the shadow element is available.") |
12 var shadow = document.getElementById("shadow"); | 12 var shadow = document.getElementById("shadow"); |
13 shouldBe("shadow.nodeName", "'SHADOW'"); | 13 shouldBe("shadow.nodeName", "'SHADOW'"); |
14 shouldBeTrue("0 <= shadow.constructor.toString().indexOf('HTMLShadowElement')"); | 14 shouldBeTrue("0 <= shadow.constructor.toString().indexOf('HTMLShadowElement')"); |
15 shouldBe("window.HTMLShadowElement", "shadow.constructor"); | 15 shouldBe("window.HTMLShadowElement", "shadow.constructor"); |
16 | 16 |
17 </script> | 17 </script> |
18 </body> | 18 </body> |
19 </html> | 19 </html> |
OLD | NEW |