blob: 6dd955117f0bf0c8fb9541e5417130b48b393433 [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">
description("Testing <code>IOSInlineMediaControls</code> statusLabel.enabled while the controls bar is hidden");
window.jsTestIsAsync = true;
const mediaControls = new IOSInlineMediaControls({ width: 600 });
let numberOfFrames = 0;
scheduler.frameDidFire = function()
{
numberOfFrames++;
switch (numberOfFrames) {
case 1:
mediaControls.bottomControlsBar.visible = false;
debug("Making the controls bar invisible");
shouldBeNull("mediaControls.statusLabel.parent");
break;
case 2:
debug("");
debug("Enabling statusLabel");
mediaControls.statusLabel.text = "Loading…";
break;
case 3:
mediaControls.bottomControlsBar.visible = true;
debug("");
debug("Making the controls bar visible again");
shouldBe("mediaControls.statusLabel.parent", "mediaControls.bottomControlsBar");
debug("");
finishMediaControlsTest();
break;
}
};
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>