[Modern Media Controls] Fix media/modern-media-controls/status-label/status-label...
[WebKit-https.git] / LayoutTests / media / modern-media-controls / status-label / status-label-font.html
1 <script src="../../../resources/js-test-pre.js"></script>
2 <script src="../resources/media-controls-loader.js" type="text/javascript"></script>
3 <body>
4 <script type="text/javascript">
5
6 window.jsTestIsAsync = true;
7
8 description("Testing the <code>StatusLabel</code> font is correctly set when hosted in media controls.");
9
10 const mediaControls = new MacOSInlineMediaControls({ width: 600, height: 300 });
11 mediaControls.showsStartButton = false;
12 mediaControls.statusLabel.text = "Hello";
13 document.body.appendChild(mediaControls.element);
14
15 scheduler.frameDidFire = function()
16 {
17     shouldBeEqualToString("window.getComputedStyle(mediaControls.statusLabel.element).fontFamily", "-apple-system");
18     mediaControls.element.remove();
19     debug("");
20     finishJSTest();
21 };
22
23 </script>
24 <script src="../../../resources/js-test-post.js"></script>
25 </body>