[MSE] Removing samples when presentation order does not match decode order can cause...
[WebKit.git] / LayoutTests / media / media-source / media-source-remove-decodeorder-crash-expected.txt
1 This tests the SourceBuffer.remove() API. The test removes samples where the decode and presentation orders differ. Should not crash.
2
3 RUN(video.src = URL.createObjectURL(source))
4 EVENT(sourceopen)
5 RUN(sourceBuffer = source.addSourceBuffer("video/mock; codecs=mock"))
6 RUN(sourceBuffer.appendBuffer(initSegment))
7 EVENT(updateend)
8 RUN(sourceBuffer.appendBuffer(samples))
9 EVENT(updateend)
10 RUN(sourceBuffer.remove(1.9, 2))
11 EVENT(updateend)
12 EXPECTED (sourceBuffer.buffered.length == '1') OK
13 EXPECTED (sourceBuffer.buffered.start(0) == '0') OK
14 EXPECTED (sourceBuffer.buffered.end(0) == '1') OK
15 END OF TEST
16