Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1806)

Unified Diff: media/test/data/eme_player_js/test_config.js

Issue 641443002: Add unprefixed EME tests for LoadSession() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO (plus rebase) Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/test/data/eme_player_js/player_utils.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « media/test/data/eme_player_js/player_utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698