OLD | NEW |
---|---|
(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> | |
OLD | NEW |