blob: 80caa2a16f2e79589acbaff43fe49b38e1048022 [file] [log] [blame]
Test HTMLMediaElement canPlayType() method.
TEST(video.canPlayType()) THROWS('TypeError: Not enough arguments') OK
EXPECTED (video.canPlayType('video/') == '') OK
EXPECTED (video.canPlayType('video/blahblah') == '') OK
EXPECTED (video.canPlayType('video/blahblah; codecs="blah, , blah"') == '') OK
EXPECTED (video.canPlayType('video/blahblah; codecs=blah') == '') OK
EXPECTED (video.canPlayType('video/blahblah; codecs="blah"') == '') OK
EXPECTED (video.canPlayType('video/blahblah; codecs="badcontent') == '') OK
EXPECTED (video.canPlayType('video/blahblah; codecs=badcontent"') == '') OK
EXPECTED (video.canPlayType('video/blahblah; codecs="badcontent"') == '') OK
END OF TEST