summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element.html
blob: eb706961d3cd3efa68fcc0df2b1ba45178bdfb36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.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>
</body>
</html>