blob: 65a28bfea356618d76422c7659c7847469fe80da [file] [log] [blame]
<script src="../../../resources/js-test-pre.js"></script>
<script src="../resources/media-controls-loader.js" type="text/javascript"></script>
<body>
<script type="text/javascript">
description("Testing the <code>PiPPlacard</code> class.");
debug("Placard with all parameters");
const placard = new PiPPlacard({ layoutTraits: LayoutTraits.macOS });
shouldBe("placard.children[0].children[0].iconName", "Icons.PiPPlacard");
shouldBeEqualToString("placard.children[0].children[1].element.innerText", "This video is playing in picture in picture.");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>