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

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

Issue 550933003: Update eme_player tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | media/test/data/eme_player_js/globals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/data/eme_player_js/clearkey_player.js
diff --git a/media/test/data/eme_player_js/clearkey_player.js b/media/test/data/eme_player_js/clearkey_player.js
index 92580f30494722e1b3e9a6966668ed794ee9a068..fed25ad971e07284f3edbd0608e3c461ed614732 100644
--- a/media/test/data/eme_player_js/clearkey_player.js
+++ b/media/test/data/eme_player_js/clearkey_player.js
@@ -23,11 +23,7 @@ ClearKeyPlayer.prototype.onMessage = function(message) {
Utils.getInitDataFromMessage(message, this.testConfig.mediaType, true);
var key = Utils.getDefaultKey(this.testConfig.forceInvalidResponse);
var jwkSet = Utils.createJWKData(initData, key);
- if (PROMISES_SUPPORTED) {
- message.target.update(jwkSet).catch(function(error) {
- Utils.failTest(error, KEY_ERROR);
- });
- } else {
- message.target.update(jwkSet);
- }
+ message.target.update(jwkSet).catch(function(error) {
+ Utils.failTest(error, KEY_ERROR);
+ });
};
« no previous file with comments | « no previous file | media/test/data/eme_player_js/globals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698