From 72bf48cf36f33577115ac2f1ffbea18b1f376414 Mon Sep 17 00:00:00 2001 From: Steve Heffernan Date: Tue, 3 Sep 2013 10:48:48 -0700 Subject: [PATCH] Fixed the custom fallback message test which would break when ie8 capitalized tag names --- test/unit/player.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/player.js b/test/unit/player.js index 55b64b49b..9fbe03cdf 100644 --- a/test/unit/player.js +++ b/test/unit/player.js @@ -331,7 +331,7 @@ test('should allow for tracking when native controls are used', function(){ test('should use custom message when encountering an unsupported video type', function() { - videojs.options['notSupportedMessage'] = 'Video no go link'; + videojs.options['notSupportedMessage'] = 'video no go link'; var fixture = document.getElementById('qunit-fixture'); var html = @@ -345,7 +345,8 @@ test('should use custom message when encountering an unsupported video type', var player = new vjs.Player(tag); var incompatibilityMessage = player.el().getElementsByTagName('p')[0]; - equal(incompatibilityMessage.innerHTML, 'Video no go link'); + // ie8 capitalizes tag names + equal(incompatibilityMessage.innerHTML.toLowerCase(), 'video no go link'); player.dispose(); });