1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update tabs

This commit is contained in:
Luke Pulverenti 2016-04-13 01:28:45 -04:00
parent d808aced1d
commit 9ceaf21b80
37 changed files with 565 additions and 345 deletions

View file

@ -37,6 +37,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
</template>
</test-fixture>
<test-fixture id="button">
<template>
<div role="listbox">
<button class="paper-item" role="option">item</button>
</div>
</template>
</test-fixture>
<test-fixture id="iconItem">
<template>
<div role="listbox">
@ -91,11 +99,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}, 1);
});
test('click triggers a click event', function(done) {
MockInteractions.tap(item);
test('enter triggers a click event', function(done) {
MockInteractions.pressEnter(item);
Polymer.Base.async(function(){
expect(clickHandler.callCount).to.be.equal(1);
done();
// You need two ticks, one for the MockInteractions event, and one
// for the button event.
Polymer.Base.async(function(){
expect(clickHandler.callCount).to.be.equal(1);
done();
}, 1);
}, 1);
});
});
@ -196,6 +208,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
});
a11ySuite('item');
a11ySuite('button');
a11ySuite('iconItem');
});