summaryrefslogtreecommitdiffstats
path: root/dom/media/test/can_play_type_ogg.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/test/can_play_type_ogg.js')
-rw-r--r--dom/media/test/can_play_type_ogg.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/dom/media/test/can_play_type_ogg.js b/dom/media/test/can_play_type_ogg.js
index 6572ab7c0f..e2c974d601 100644
--- a/dom/media/test/can_play_type_ogg.js
+++ b/dom/media/test/can_play_type_ogg.js
@@ -5,18 +5,23 @@ function check_ogg(v, enabled, finish) {
function basic_test() {
return new Promise(function (resolve) {
- // Ogg types
- check("video/ogg", "maybe");
+ if (SpecialPowers.getBoolPref("media.theora.enabled")) {
+ check("video/ogg", "maybe");
+ check("video/ogg; codecs=vorbis", "probably");
+ check("video/ogg; codecs=vorbis,theora", "probably");
+ check('video/ogg; codecs="vorbis, theora"', "probably");
+ check("video/ogg; codecs=theora", "probably");
+ } else {
+ check("video/ogg", "");
+ check("video/ogg; codecs=vorbis", "");
+ check("video/ogg; codecs=vorbis,theora", "");
+ check('video/ogg; codecs="vorbis, theora"', "");
+ check("video/ogg; codecs=theora", "");
+ }
check("audio/ogg", "maybe");
check("application/ogg", "maybe");
- // Supported Ogg codecs
check("audio/ogg; codecs=vorbis", "probably");
- check("video/ogg; codecs=vorbis", "probably");
- check("video/ogg; codecs=vorbis,theora", "probably");
- check('video/ogg; codecs="vorbis, theora"', "probably");
- check("video/ogg; codecs=theora", "probably");
-
resolve();
});
}