blob: e2e442cd8dfe07023ad4f61261868ad2c23b210e [file] [log] [blame]
<script src="../../../resources/js-test-pre.js"></script>
<script src="../resources/media-controls-utils.js" type="text/javascript"></script>
<script src="../resources/media-controls-loader.js" type="text/javascript"></script>
<body>
<script type="text/javascript">
description("Testing the <code>MacOSFullscreenMediaControls</code> computed styles.");
window.jsTestIsAsync = true;
const mediaControls = new MacOSFullscreenMediaControls;
document.body.appendChild(mediaControls.element);
shouldBecomeEqualToString("window.getComputedStyle(mediaControls.timeControl.element).width", "448px", () => {
shouldBeEqualToString("window.getComputedStyle(mediaControls.timeControl.element).left", "10px");
shouldBeEqualToString("window.getComputedStyle(mediaControls.timeControl.element).top", "49px");
shouldBeEqualToString("window.getComputedStyle(mediaControls.timeControl.scrubber.element).top", "0px");
shouldBeEqualToString("window.getComputedStyle(mediaControls.timeControl.elapsedTimeLabel.element).fontSize", "12px");
shouldBeEqualToString("window.getComputedStyle(mediaControls.timeControl.durationTimeLabel.element).fontSize", "12px");
debug("");
mediaControls.element.remove();
finishMediaControlsTest();
});
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>