mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
4569cb5b6d
commit
003fd2ae7e
9 changed files with 92 additions and 27 deletions
|
@ -70,7 +70,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
test('first item gets focus when menu is focused', function(done) {
|
||||
var menu = fixture('basic');
|
||||
menu.focus();
|
||||
MockInteractions.focus(menu);
|
||||
setTimeout(function() {
|
||||
assert.equal(document.activeElement, menu.firstElementChild, 'document.activeElement is first item')
|
||||
done();
|
||||
|
@ -81,7 +81,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
test('selected item gets focus when menu is focused', function(done) {
|
||||
var menu = fixture('basic');
|
||||
menu.selected = 1;
|
||||
menu.focus();
|
||||
MockInteractions.focus(menu);
|
||||
setTimeout(function() {
|
||||
assert.equal(document.activeElement, menu.selectedItem, 'document.activeElement is selected item');
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue