update components
Conflicts: MediaBrowser.WebDashboard/dashboard-ui/bower_components/emby-webcomponents/.bower.json
This commit is contained in:
parent
d3f40bd6d9
commit
0c696294ae
42 changed files with 1514 additions and 361 deletions
|
@ -78,6 +78,34 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
assert.equal(button.elevation, 3);
|
||||
assert.ok(button.hasRipple());
|
||||
});
|
||||
|
||||
test('space key', function(done) {
|
||||
const SPACE_KEY_CODE = 32;
|
||||
var ripple;
|
||||
MockInteractions.focus(button);
|
||||
|
||||
assert.ok(button.hasRipple());
|
||||
|
||||
ripple = button.getRipple();
|
||||
MockInteractions.keyDownOn(button, SPACE_KEY_CODE);
|
||||
|
||||
assert.equal(ripple.ripples.length, 1);
|
||||
|
||||
MockInteractions.keyDownOn(button, SPACE_KEY_CODE);
|
||||
|
||||
assert.equal(ripple.ripples.length, 1);
|
||||
|
||||
MockInteractions.keyUpOn(button, SPACE_KEY_CODE);
|
||||
|
||||
var transitionEndCalled = false;
|
||||
ripple.addEventListener('transitionend', function() {
|
||||
if (!transitionEndCalled) {
|
||||
transitionEndCalled = true;
|
||||
assert.equal(ripple.ripples.length, 0);
|
||||
done();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue