mirror of
https://github.com/videojs/video.js.git
synced 2024-12-14 11:23:30 +02:00
c7e35e51de
Included are two sanity check tests for the two areas being checked to make sure that the menu title items are being correctly placed in the actual UL element of the menu. Fixes #1107
20 lines
491 B
JavaScript
20 lines
491 B
JavaScript
module('MenuButton');
|
|
|
|
test('should place title list item into ul', function() {
|
|
var player, menuButton;
|
|
|
|
player = PlayerTest.makePlayer();
|
|
|
|
vjs.MenuButton.prototype.kind_ = 'testTitle';
|
|
|
|
menuButton = new vjs.MenuButton(player, {
|
|
'title': true
|
|
});
|
|
|
|
var menuContentElement = menuButton.el().getElementsByTagName('UL')[0];
|
|
var titleElement = menuContentElement.children[0];
|
|
|
|
ok(titleElement.innerHTML === 'TestTitle', 'title element placed in ul');
|
|
|
|
player.dispose();
|
|
}); |