blob: bb3964e0044bc3e39619e69c25061f59f58b619c [file] [log] [blame]
TEST(source.addSourceBuffer("invalid")) THROWS(DOMException.NOT_SUPPORTED_ERR) OK
TEST(source.addSourceBuffer("")) THROWS(DOMException.INVALID_ACCESS_ERR) OK
EXPECTED (MediaSource.isTypeSupported("invalid") == 'false') OK
EXPECTED (MediaSource.isTypeSupported("video/mock; codecs=mock") == 'true') OK
RUN(video.src = URL.createObjectURL(source))
EVENT(sourceopen)
RUN(sourceBuffer = source.addSourceBuffer("video/mock; codecs=mock"))
EXPECTED (source.sourceBuffers[0] == '[object SourceBuffer]') OK
EXPECTED (source.activeSourceBuffers[0] == '[object SourceBuffer]') OK
END OF TEST