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

Side by Side Diff: LayoutTests/media/video-paint-invalidation.html

Issue 613153002: Change <video controls=true> to just <video controls> in LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« no previous file with comments | « LayoutTests/media/video-canvas-source.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="../fast/repaint/resources/text-based-repaint.js"></script>
3 <video id="video" controls=true></video> 3 <video id="video" controls></video>
4 <script> 4 <script>
5 if (testRunner) 5 if (testRunner)
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 7
8 var video = document.getElementById("video"); 8 var video = document.getElementById("video");
9 var done = false; 9 var done = false;
10 var listener = document.addEventListener("canplaythrough", function() { 10 var listener = document.addEventListener("canplaythrough", function() {
11 if (done) 11 if (done)
12 return; 12 return;
13 done = true; 13 done = true;
14 video.currentTime = video.duration; 14 video.currentTime = video.duration;
15 runRepaintTest(); 15 runRepaintTest();
16 }, true); 16 }, true);
17 17
18 function repaintTest() { 18 function repaintTest() {
19 video.play(); 19 video.play();
20 } 20 }
21 21
22 video.src = "content/test-25fps.ogv"; 22 video.src = "content/test-25fps.ogv";
23 </script> 23 </script>
OLDNEW
« no previous file with comments | « LayoutTests/media/video-canvas-source.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698