Chromium Code Reviews| Index: LayoutTests/media/video-positive-start-time.html |
| diff --git a/LayoutTests/media/video-positive-start-time.html b/LayoutTests/media/video-positive-start-time.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..553622694171f9c7ae63b2a19b5a50e7f0fb14af |
| --- /dev/null |
| +++ b/LayoutTests/media/video-positive-start-time.html |
| @@ -0,0 +1,21 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body onload="start()"> |
| +<p>Load a video with a postive start time, ensure video.currentTime is 4.253</p> |
| +<video></video> |
| +<script src="video-test.js"></script> |
|
acolwell GONE FROM CHROMIUM
2014/09/15 23:34:44
nit: Please put all the script in a <head> and ind
|
| +<script src="media-file.js"></script> |
| +<script> |
| + waitForEventOnce('loadeddata', function() { |
|
acolwell GONE FROM CHROMIUM
2014/09/15 23:34:44
nit: { should be on the next line.
|
| + testExpected('video.currentTime', 4.253, '=='); |
| + // FIXME: Once Chrome correctly exposes seekable ranges for media with |
| + // positive start times, verify video.seekable.start(0) here. |
| + endTest(); |
| + }); |
| + |
| + function start() { |
|
acolwell GONE FROM CHROMIUM
2014/09/15 23:34:44
ditto
|
| + video.src = 'resources/test-positive-start-time.webm'; |
| + } |
| +</script> |
| +</body> |
| +</html> |