| if (window.layoutTestController) |
| layoutTestController.waitUntilDone(); |
| if (window.layoutTestController) |
| layoutTestController.display(); |
| var videoElement = document.getElementById("fr").contentDocument.querySelector("video"); |
| videoElement.addEventListener("seeked", function() { |
| if (window.layoutTestController) |
| layoutTestController.notifyDone(); |
| videoElement.currentTime = videoElement.duration * 0.50; |
| This tests that in a standalone media document with audio content, the media element repaints correctly |
| <iframe src="content/silence.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe> |
| <script>// To produce the same layout as before iframe was moved down to avoid rebaselines of different platforms. |
| // https://bugs.webkit.org/show_bug.cgi?id=54942 |