| background-color: magenta; |
| <script src=video-test.js></script> |
| function testAfterLoadingPoster() |
| consoleWrite("<br><b>Test after setting poster</b>"); |
| testExpected("video.clientWidth", 300); |
| testExpected("video.clientHeight", 150); |
| testRunner.setWillSendRequestReturnsNull(true); |
| consoleWrite("<b>This test can only be run in DumpRenderTree!</b>"); |
| video = document.querySelectorAll('video')[0]; |
| consoleWrite("<br><b>Testing before setting poster</b>"); |
| testExpected("video.clientWidth", 300); |
| testExpected("video.clientHeight", 150); |
| // FIXME: the getTime() below works around a bug (82976) in mac DRT where caches aren't cleared between tests. |
| video.poster = "content/abe.png?" + (new Date().getTime()); |
| setTimeout(testAfterLoadingPoster, 100); |
| <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> |
| Resource load delegate should be able to block poster loading.</p> |