mirror of
https://github.com/videojs/video.js.git
synced 2024-12-12 11:15:04 +02:00
21 lines
545 B
JavaScript
21 lines
545 B
JavaScript
import { MenuButton } from '../../src/js/menu.js';
|
|
import TestHelpers from './test-helpers.js';
|
|
|
|
q.module('MenuButton');
|
|
|
|
test('should place title list item into ul', function() {
|
|
var player, menuButton;
|
|
|
|
player = TestHelpers.makePlayer();
|
|
|
|
menuButton = new MenuButton(player, {
|
|
'title': 'testTitle'
|
|
});
|
|
|
|
var menuContentElement = menuButton.el().getElementsByTagName('UL')[0];
|
|
var titleElement = menuContentElement.children[0];
|
|
|
|
ok(titleElement.innerHTML === 'TestTitle', 'title element placed in ul');
|
|
|
|
player.dispose();
|
|
}); |