2 RUN(video.src = URL.createObjectURL(source))
3 EVENT(sourceopen)
4 RUN(sourceBuffer = source.addSourceBuffer("video/mock; codecs=mock"))
5 RUN(sourceBuffer.appendBuffer(mediaSegment))
6 EVENT(updateend)
7 EXPECTED (source.duration.toFixed(3) == '10') OK
8 EXPECTED (sourceBuffer.buffered.end(0).toFixed(3) == '5') OK
9 RUN(source.endOfStream())
10 EXPECTED (source.duration.toFixed(3) == '5') OK
11 EVENT(updateend)
12 END OF TEST
13