Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / video-buffered-range-contains-currentTime.html
blob095c38d473ed64f5b5ac8d3d42672213a53ccff7
1 <html>
2 <head>
3 <script src=../../media-resources/media-file.js></script>
4 <script src=../../media-resources/video-test.js></script>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsTextWithPixelResults(); // To get pixels.
9 function start() {
10 findMediaElement();
12 waitForEventAndEnd('ended');
13 waitForEvent('seeked', function() {
14 video.play();
15 });
16 waitForEvent('loadedmetadata', function() {
17 video.currentTime = video.duration - 0.5;
18 } );
20 var mediaFile = findMediaFile("audio", "../../../media/content/test");
21 var type = mimeTypeForExtension(mediaFile.split('.').pop());
22 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?name=" + mediaFile + "&throttle=50&nph=1&type=" + type;
23 video.load();
25 </script>
26 </head>
27 <body onload="start()">
28 <video controls></video>
29 <p>Test that the painted buffered range contains currentTime.</p>
30 </body>
31 </html>