update polymer

This commit is contained in:
Luke Pulverenti 2015-10-07 21:49:40 -04:00
parent 8119b930e4
commit cbb6337b41
74 changed files with 2195 additions and 1393 deletions

View file

@ -41,20 +41,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
activeTarget = fixture('TrivialActiveState');
});
suite('non-primary pointer input source', function() {
test('does not cause state to change', function() {
var rightClickMouseEvent = new CustomEvent('mousedown');
rightClickMouseEvent.buttons = 2;
activeTarget.dispatchEvent(rightClickMouseEvent);
expect(activeTarget.pressed).to.be.equal(false);
});
});
suite('active state with toggles attribute', function() {
setup(function() {
activeTarget = fixture('ToggleActiveState');
});
suite('when down', function() {
test('is pressed', function() {
MockInteractions.down(activeTarget);
expect(activeTarget.hasAttribute('pressed')).to.be.eql(true);
});
});
suite('when clicked', function() {
test('is activated', function(done) {
MockInteractions.downAndUp(activeTarget, function() {