1 <video controls></video>
2 <script src=media-file.js></script>
3 <script src=video-test.js></script>
5 testExpected("video.buffered.length", 0);
6 testException("video.buffered.start(-1)", "DOMException.INDEX_SIZE_ERR");
7 testException("video.buffered.end(-1)", "DOMException.INDEX_SIZE_ERR");
8 testException("video.buffered.start(0)", "DOMException.INDEX_SIZE_ERR");
9 testException("video.buffered.end(0)", "DOMException.INDEX_SIZE_ERR");
10 waitForEvent('canplaythrough',
13 testExpected("video.buffered.length", 1);
14 testExpected("video.buffered.start(0)", 0);
15 testExpected("video.buffered.end(0)", 0, '>');
16 testException("video.buffered.start(-1)", "DOMException.INDEX_SIZE_ERR");
17 testException("video.buffered.end(-1)", "DOMException.INDEX_SIZE_ERR");
18 testException("video.buffered.start(1)", "DOMException.INDEX_SIZE_ERR");
19 testException("video.buffered.end(1)", "DOMException.INDEX_SIZE_ERR");
23 video.src = findMediaFile("video", "content/test");