blob: 623aa423f706120184559fd8d12a09c3391744f3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<div>
<shadow id="shadow"></shadow>
</div>
<script>
description("This test ensures that the shadow element is available.")
var shadow = document.getElementById("shadow");
shouldBe("shadow.nodeName", "'SHADOW'");
shouldBeTrue("0 <= shadow.constructor.toString().indexOf('HTMLShadowElement')");
shouldBe("window.HTMLShadowElement", "shadow.constructor");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>