Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-buffered.html
blob282f01854074ce49aa21553b323b6812aad324e6
1 <video controls></video>
2 <script src=media-file.js></script>
3 <script src=video-test.js></script>
4 <script>
5 testExpected("video.buffered.length", 0);
6 testDOMException("video.buffered.start(-1)", "DOMException.INDEX_SIZE_ERR");
7 testDOMException("video.buffered.end(-1)", "DOMException.INDEX_SIZE_ERR");
8 testDOMException("video.buffered.start(0)", "DOMException.INDEX_SIZE_ERR");
9 testDOMException("video.buffered.end(0)", "DOMException.INDEX_SIZE_ERR");
10 waitForEvent('canplaythrough',
11 function ()
13 testExpected("video.buffered.length", 1);
14 testExpected("video.buffered.start(0)", 0);
15 testExpected("video.buffered.end(0)", 0, '>');
16 testDOMException("video.buffered.start(-1)", "DOMException.INDEX_SIZE_ERR");
17 testDOMException("video.buffered.end(-1)", "DOMException.INDEX_SIZE_ERR");
18 testDOMException("video.buffered.start(1)", "DOMException.INDEX_SIZE_ERR");
19 testDOMException("video.buffered.end(1)", "DOMException.INDEX_SIZE_ERR");
20 endTest();
23 video.src = findMediaFile("video", "content/test");
24 </script>