7 background-color: magenta;
11 <script src=video-test.js></script>
16 function testAfterLoadingPoster()
18 consoleWrite("<br><b>Test after setting poster</b>");
20 testExpected("video.clientWidth", 300);
21 testExpected("video.clientHeight", 150);
28 if (window.testRunner) {
29 testRunner.dumpAsText();
30 testRunner.setWillSendRequestReturnsNull(true);
32 consoleWrite("<b>This test can only be run in DumpRenderTree!</b>");
34 video = document.querySelectorAll('video')[0];
36 consoleWrite("<br><b>Testing before setting poster</b>");
37 testExpected("video.clientWidth", 300);
38 testExpected("video.clientHeight", 150);
40 video.poster = "content/abe.png";
42 setTimeout(testAfterLoadingPoster, 100);
47 <body onload="start()">
48 <video id=video></video>
49 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=65270">https://bugs.webkit.org/show_bug.cgi?id=65270</a>. <br>
50 Resource load delegate should be able to block poster loading.</p>