update live tv guide
This commit is contained in:
parent
a391e96df5
commit
0f7541beda
19 changed files with 85 additions and 51 deletions
|
@ -171,15 +171,6 @@ suite('Polymer.IronA11yKeysBehavior', function() {
|
|||
MockInteractions.pressSpace(keys);
|
||||
|
||||
expect(keys.keyCount).to.be.equal(1);
|
||||
|
||||
MockInteractions.pressAndReleaseKeyOn(keys, 27, [], 'Esc');
|
||||
expect(keys.keyCount).to.be.equal(2);
|
||||
|
||||
MockInteractions.pressAndReleaseKeyOn(keys, 27, [], 'Escape');
|
||||
expect(keys.keyCount).to.be.equal(3);
|
||||
|
||||
MockInteractions.pressAndReleaseKeyOn(keys, 27, []);
|
||||
expect(keys.keyCount).to.be.equal(4);
|
||||
});
|
||||
|
||||
test('trigger the handler when the specified key is pressed together with a modifier', function() {
|
||||
|
@ -191,12 +182,22 @@ suite('Polymer.IronA11yKeysBehavior', function() {
|
|||
});
|
||||
|
||||
test('handles special character @', function() {
|
||||
var event = new CustomEvent('keydown');
|
||||
event.key = '@';
|
||||
keys.dispatchEvent(event);
|
||||
MockInteractions.pressAndReleaseKeyOn(keys, undefined, [], '@');
|
||||
|
||||
expect(keys.keyCount).to.be.equal(1);
|
||||
});
|
||||
|
||||
test('handles variations of Esc key', function() {
|
||||
MockInteractions.pressAndReleaseKeyOn(keys, undefined, [], 'Esc');
|
||||
expect(keys.keyCount).to.be.equal(1);
|
||||
|
||||
MockInteractions.pressAndReleaseKeyOn(keys, undefined, [], 'Escape');
|
||||
expect(keys.keyCount).to.be.equal(2);
|
||||
|
||||
MockInteractions.pressAndReleaseKeyOn(keys, 27, [], '');
|
||||
expect(keys.keyCount).to.be.equal(3);
|
||||
});
|
||||
|
||||
test('do not trigger the handler for non-specified keys', function() {
|
||||
MockInteractions.pressEnter(keys);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue