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 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',
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");
23 video
.src
= findMediaFile("video", "content/test");