Index: media/test/data/eme_player_js/test_config.js |
diff --git a/media/test/data/eme_player_js/test_config.js b/media/test/data/eme_player_js/test_config.js |
index 8be8a9adb5a73be2105067ba0868b893093e9fcd..6484eb54d97e9bc68461ed5e066215a227862c1a 100644 |
--- a/media/test/data/eme_player_js/test_config.js |
+++ b/media/test/data/eme_player_js/test_config.js |
@@ -28,6 +28,15 @@ TestConfig.prototype.loadQueryParams = function() { |
this.useMSE = this.useMSE == '1' || this.useMSE == 'true'; |
this.usePrefixedEME = |
this.usePrefixedEME == '1' || this.usePrefixedEME == 'true'; |
+ |
+ // Validate that the prefixed/unprefixed EME is available. |
+ if (this.usePrefixedEME) { |
+ if (EME_DISABLED_OPTIONS.indexOf(EME_PREFIXED_VERSION) >= 0) |
+ Utils.failTest('Prefixed EME not available.') |
+ } else { |
+ if (EME_DISABLED_OPTIONS.indexOf(EME_UNPREFIXED_VERSION) >= 0) |
+ Utils.failTest('Unprefixed EME not available.') |
+ } |
}; |
TestConfig.updateDocument = function() { |