blob: 14f5d580882ac3bc4d6bb7faf6e7b3ce5bff6d3d [file] [log] [blame]
This tests that a video element receives "resize" event correctly when we append initialization and media segment to its source buffer.
RUN(video.src = URL.createObjectURL(source))
EVENT(sourceopen)
RUN(source.duration = loader.duration())
RUN(sourceBuffer = source.addSourceBuffer(loader.type()))
RUN(sourceBuffer.appendBuffer(loader.initSegment()))
EVENT(resize)
EVENT(update)
Append a media segment.
RUN(sourceBuffer.appendBuffer(loader.mediaSegment(0)))
EVENT(resize)
EXPECTED (video.videoWidth == '640') OK
EXPECTED (video.videoHeight == '480') OK
END OF TEST