blob: 972231e2d8ec117fbeced488279d5972ba042ce4 [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: new MacOSLayoutTraits(LayoutTraits.Mode.Inline) });
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>