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 41a4d45c322855e4a3dd3e57e660582f4ddd1796..8ebb033f71f13fe7d66490f2612f17f7665c6528 100644 |
--- a/media/test/data/eme_player_js/utils.js |
+++ b/media/test/data/eme_player_js/utils.js |
@@ -189,19 +189,13 @@ Utils.isRenewalMessage = function(message) { |
if (message.messageType != 'license-renewal') |
return false; |
- if (!Utils.isRenewalMessagePrefixed(message.message)) { |
+ if (!Utils.hasPrefix(message.message, EME_RENEWAL_MESSAGE_HEADER)) { |
Utils.failTest('license-renewal message doesn\'t contain expected header', |
- PREFIXED_EME_RENEWAL_MISSING_HEADER); |
+ EME_RENEWAL_MISSING_HEADER); |
} |
return true; |
}; |
-// For the prefixed API renewal messages are determined by looking at the |
-// message and finding a known string. |
-Utils.isRenewalMessagePrefixed = function(msg) { |
- return Utils.hasPrefix(msg, PREFIXED_EME_RENEWAL_MESSAGE_HEADER); |
-}; |
- |
Utils.resetTitleChange = function() { |
this.titleChanged = false; |
document.title = ''; |