| <!doctype html> |
| <html> |
| <head> |
| <title>video.canPlayType() - supported format w/o codecs parameter</title> |
| <script src="../../w3cwrapper.js"></script> |
| </head> |
| <body> |
| <p><a href="http://dev.w3.org/html5/spec/Overview.html#dom-navigator-canplaytype">spec reference</a></p> |
| <video id="v"> |
| </video> |
| <div id="log"></div> |
| <script> |
| test(function() { |
| var v = document.getElementById("v"); |
| if (v.canPlayType('video/webm; codecs="vp8, vorbis"') == "probably") { |
| assert_equals( |
| v.canPlayType("video/webm"), |
| "maybe", |
| "videoElement.canPlayType() should return 'maybe' on supported format w/o codecs parameter"); |
| } |
| }); |
| </script> |
| </body> |
| </html> |