blob: 7240bab88a55a67df2871683af53f8cb7f7ee2a1 [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;
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>