Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: LayoutTests/media/audio-repaint.html

Issue 196353013: Convert some repaint tests to not call display() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations, remove do-not-repaint tricky test Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <body> 1 <body>
2 <p> 2 <p>
3 This tests that in a html document with inline audio content, the media elem ent repaints correctly 3 This tests that in a html document with inline audio content, the media elem ent repaints correctly
4 while playing. 4 while playing.
5 </p> 5 </p>
6 <audio controls autoplay onplaying="playing(0)" src="content/silence.wav"></audi o><br/> 6 <audio controls autoplay onplaying="playing(0)" src="content/silence.wav"></audi o><br/>
7 <audio controls autoplay onplaying="playing(1)" src="content/silence.wav" style= "margin-bottom:25px; -webkit-box-reflect:below;"></audio><br/> 7 <audio controls autoplay onplaying="playing(1)" src="content/silence.wav" style= "margin-bottom:25px; -webkit-box-reflect:below;"></audio><br/>
8 <audio controls autoplay onplaying="playing(2)" src="content/silence.wav" style= "margin:27px 0; -webkit-transform: rotate(15deg);"></audio><br> 8 <audio controls autoplay onplaying="playing(2)" src="content/silence.wav" style= "margin:27px 0; -webkit-transform: rotate(15deg);"></audio><br>
9 <script> 9 <script>
10 // Note: can't dump repaint rects here (yet) because this is trying to
11 // test autoplaying and window.internals doesn't exist at the right time
12 // to start tracking repaint rects.
10 if (window.testRunner) 13 if (window.testRunner)
11 testRunner.waitUntilDone(); 14 testRunner.waitUntilDone();
12 15
13 if (window.testRunner)
14 testRunner.display();
15
16 var count = 3; 16 var count = 3;
17 var audioElements = document.getElementsByTagName('audio'); 17 var audioElements = document.getElementsByTagName('audio');
18 18
19 function playing(i) { 19 function playing(i) {
20 var audio = audioElements[i]; 20 var audio = audioElements[i];
21 audio.pause(); 21 audio.pause();
22 audio.addEventListener("seeked", function() { 22 audio.addEventListener("seeked", function() {
23 if (!--count && window.testRunner) 23 if (!--count && window.testRunner)
24 testRunner.notifyDone(); 24 testRunner.notifyDone();
25 }, true); 25 }, true);
26 audio.currentTime = audio.duration * 0.50; 26 audio.currentTime = audio.duration * 0.50;
27 } 27 }
28 </script> 28 </script>
29 </body> 29 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/obscured-background-no-repaint.html ('k') | LayoutTests/media/media-document-audio-repaint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698