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

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

Issue 616933003: Add error handler for license request. (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 | 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/utils.js
diff --git a/media/test/data/eme_player_js/utils.js b/media/test/data/eme_player_js/utils.js
index ca62cd1f7b2a1ff9662c123849eabe1975028eb9..22e8bc5b663928295326727c0fa0f6269b61b257 100644
--- a/media/test/data/eme_player_js/utils.js
+++ b/media/test/data/eme_player_js/utils.js
@@ -226,7 +226,9 @@ Utils.sendRequest = function(requestType, responseType, message, serverURL,
var xmlhttp = new XMLHttpRequest();
xmlhttp.responseType = responseType;
xmlhttp.open(requestType, serverURL, true);
-
+ xmlhttp.onerror = function(e) {
+ Utils.failTest('FAILED: Unable to request license.');
ddorwin 2014/09/30 20:43:44 How about: 'FAILED: License request XHR failed.'
sandersd (OOO until July 31) 2014/09/30 20:56:35 Done. The server URL is logged at the start of th
+ };
xmlhttp.onload = function(e) {
if (this.status == 200) {
if (onSuccessCallbackFn)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698