blob: 2e87b64edbd3b25ccad1be33375ff2445552f0b0 [file] [log] [blame]
<script src="../../../resources/js-test-pre.js"></script>
<script src="../resources/media-controls-loader.js" type="text/javascript"></script>
<script src="../resources/media-controls-utils.js" type="text/javascript"></script>
<body>
<script type="text/javascript">
window.jsTestIsAsync = true;
description("Testing the <code>ForwardButton</code> class.");
const forwardButton = new ForwardButton({ layoutTraits: LayoutTraits.macOS });
shouldBeEqualToString("forwardButton.element.localName", "button");
shouldBeTrue('forwardButton.element.classList.contains("forward")');
shouldBe("forwardButton.iconName", "Icons.Forward");
shouldBecomeEqual('forwardButton.image.element.style.webkitMaskImage.includes("macOS/Forward.svg")', "true", finishMediaControlsTest);
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>