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

Side by Side Diff: LayoutTests/http/tests/media/video-buffering-repaints-controls.html

Issue 8496044: Repaint video controls when buffering during pause. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added layout test. Fixed nits. Created 9 years, 1 month 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
(Empty)
1 <html>
2 <head>
3 <script>
4 var painted = false;
5 function start() {
6 if (window.layoutTestController)
7 layoutTestController.waitUntilDone();
8
9 var video = document.getElementsByTagName('video')[0];
10
11 video.addEventListener('progress', function(event) {
12 // Each progress event should correlate to a repaint. Check
13 // by watching for a repaint between progress events.
14 if (painted) {
15 layoutTestController.notifyDone();
16 } else {
17 layoutTestController.display();
18 painted = true;
19 }
20 }, false);
21
22 // Don't actually play since we're testing via an image diff.
23 video.src = 'http://127.0.0.1:8000/media/video-throttled-load.cg i?&name=resources/test.ogv&throttle=20&type=video/ogg'
scherkus (not reviewing) 2011/11/28 22:21:19 take a look at other http/tests/media tests where
DaleCurtis 2011/11/28 23:49:40 Ah, I saw that, but misunderstood what it was doin
24 }
25 </script>
26 </head>
27
28 <body onload="start();">
29 <p>Test that media controls repaint correctly during paused states when new data is buffered.</p>
scherkus (not reviewing) 2011/11/28 22:21:19 maybe: s/during paused states/while paused/ ?
DaleCurtis 2011/11/28 23:49:40 I said paused states instead of paused because I w
30 <video controls preload></video><br/>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698