blob: 5b9fe662f596412bf420a469de5f81dc8ba8b0e4 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ dumpJSConsoleLogInStdErr=true ] -->
<script src="../../../resources/js-test-pre.js"></script>
<script src="../resources/media-controls-loader.js" type="text/javascript"></script>
<body>
<script type="text/javascript">
description("Testing the <code>CompactMediaControls</code> constructor.");
const mediaControls = new CompactMediaControls;
shouldBeEqualToString("mediaControls.element.localName", "div");
shouldBeEqualToString("mediaControls.element.className", "compact media-controls");
shouldBe("mediaControls.layoutTraits", "LayoutTraits.Compact");
shouldBe("mediaControls.state", "CompactMediaControls.States.Paused");
debug("");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>