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
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
module('Tracks');
|
|
|
|
test('should place title list item into ul', function() {
|
|
var player, chaptersButton;
|
|
|
|
player = PlayerTest.makePlayer();
|
|
|
|
chaptersButton = new vjs.ChaptersButton(player);
|
|
|
|
var menuContentElement = chaptersButton.el().getElementsByTagName('UL')[0];
|
|
var titleElement = menuContentElement.children[0];
|
|
|
|
ok(titleElement.innerHTML === 'Chapters', 'title element placed in ul');
|
|
|
|
player.dispose();
|
|
}); |