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

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: Nits, drop whitespace. Created 9 years 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 | « no previous file | Source/WebCore/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src=../../media-resources/media-file.js></script>
4 <script>
5 var painted = false;
6 function start() {
7 if (window.layoutTestController)
8 layoutTestController.waitUntilDone();
9
10 var video = document.getElementsByTagName('video')[0];
11
12 video.addEventListener('progress', function(event) {
13 // Each progress event should correlate to a repaint. Check
14 // by watching for a repaint between progress events.
15 if (painted) {
16 layoutTestController.notifyDone();
17 } else {
18 layoutTestController.display();
19 painted = true;
20 }
21 }, false);
22
23 var mediaFile = findMediaFile("video", "resources/test");
24 var mimeType = mimeTypeForFile(mediaFile);
25
26 // Don't actually play since we're testing via an image diff.
27 video.src = 'http://127.0.0.1:8000/media/video-throttled-load.cg i?&name=' + mediaFile + '&throttle=10&type=' + mimeType
28 }
29 </script>
30 </head>
31
32 <body onload="start();">
33 <p>Test that media controls repaint correctly during paused states when new data is buffered.</p>
34 <video controls preload></video><br/>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698