blob: 9718c89ec9a5c4bcd4fcc5ad1e1b6e3bf62075b4 [file] [log] [blame]
<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>MacOSInlineMediaControls</code> showsStartButton property.");
const mediaControls = new MacOSInlineMediaControls({ width: 600, height: 300 });
debug("Default where showsStartButton = false");
shouldBeFalse("mediaControls.showsStartButton");
shouldBe("mediaControls.children", "[mediaControls.topLeftControlsBar, mediaControls.bottomControlsBar]");
debug("");
debug("showsStartButton = true");
mediaControls.showsStartButton = true;
shouldBeTrue("mediaControls.showsStartButton");
shouldBe("mediaControls.children", "[mediaControls.playPauseButton]");
debug("");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>