1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-25 11:13:52 +02:00

Fixed the custom fallback message test which would break when ie8 capitalized tag names

This commit is contained in:
Steve Heffernan 2013-09-03 10:48:48 -07:00
parent e6ecbfe824
commit 72bf48cf36

View File

@ -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 <a href="">link</a>';
videojs.options['notSupportedMessage'] = 'video no go <a href="">link</a>';
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 <a href="">link</a>');
// ie8 capitalizes tag names
equal(incompatibilityMessage.innerHTML.toLowerCase(), 'video no go <a href="">link</a>');
player.dispose();
});