blob: de4b952eb99a30be0079c75562704b4ac7ce5600 [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 that text selection is turned off for <code>StatusLabel</code>.");
const mediaControls = new MacOSInlineMediaControls({ width: 600, height: 300 });
mediaControls.showsStartButton = false;
mediaControls.statusLabel.enabled = true;
mediaControls.statusLabel.text = "Hello";
document.body.appendChild(mediaControls.element);
scheduler.frameDidFire = function()
{
shouldBeEqualToString("window.getComputedStyle(mediaControls.statusLabel.element).webkitUserSelect", "none");
shouldBeEqualToString("window.getComputedStyle(mediaControls.statusLabel.element).cursor", "default");
mediaControls.element.remove();
debug("");
finishMediaControlsTest();
};
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>