blob: 367f6de2dcfbd82ad94e80c8602133f7bab6d2e7 [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>AirplayButton</code> class.");
iconService.directoryPath = "../../../../Source/WebCore/Modules/modern-media-controls/images";
const airplayButton = new AirplayButton({ layoutTraits: LayoutTraits.macOS });
airplayButton.on = true;
document.body.appendChild(airplayButton.element);
shouldBecomeEqual('airplayButton.element.classList.contains("on")', "true", () => {
debug(`window.getComputedStyle(airplayButton.element).backgroundColor = ${window.getComputedStyle(airplayButton.element).backgroundColor}`);
airplayButton.element.remove();
finishMediaControlsTest();
});
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>