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

Unified Diff: media/test/data/eme_player_js/widevine_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 | « 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/widevine_player.js
diff --git a/media/test/data/eme_player_js/widevine_player.js b/media/test/data/eme_player_js/widevine_player.js
index 95483ec12c44d24ffd0e9912bfc9d6d973f6f1ac..c6de516f6358fd93bf3d3f221dbf4d012f2faade 100644
--- a/media/test/data/eme_player_js/widevine_player.js
+++ b/media/test/data/eme_player_js/widevine_player.js
@@ -23,14 +23,9 @@ WidevinePlayer.prototype.onMessage = function(message) {
function onSuccess(response) {
var key = new Uint8Array(response);
Utils.timeLog('Update media key session with license response.', key);
- if (PROMISES_SUPPORTED) {
- mediaKeySession.update(key).catch(function(error) {
- Utils.failTest(error, KEY_ERROR);
- });
- } else {
- mediaKeySession.update(key);
- }
-
+ mediaKeySession.update(key).catch(function(error) {
+ Utils.failTest(error, KEY_ERROR);
+ });
}
Utils.sendRequest('POST',
'arraybuffer',
« 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