upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / media / media-document-audio-repaint.html
1 <script>
2     if (window.layoutTestController)
3         layoutTestController.waitUntilDone();
4
5     function frameLoaded()
6     {
7         if (window.layoutTestController)
8             layoutTestController.display();
9
10         var videoElement = document.getElementById("fr").contentDocument.querySelector("video");
11         setTimeout(function(){
12             videoElement.pause();
13             videoElement.addEventListener("seeked", function() {
14                 if (window.layoutTestController)
15                     layoutTestController.notifyDone();
16             }, false);
17             videoElement.currentTime = videoElement.duration * 0.50;
18         }, 100)
19     }
20 </script>
21 <p>
22     This tests that in a standalone media document with audio content, the media element repaints correctly
23     while playing.
24 </p>
25 <iframe src="content/silence.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
26 <script>// To produce the same layout as before iframe was moved down to avoid rebaselines of different platforms.
27 // https://bugs.webkit.org/show_bug.cgi?id=54942
28 </script>