update translations

This commit is contained in:
Luke Pulverenti 2015-12-10 12:37:53 -05:00
parent 8c75fcc5f7
commit 9622aceeca
40 changed files with 2099 additions and 486 deletions

View file

@ -1,6 +1,6 @@
{
"name": "paper-radio-group",
"version": "1.0.7",
"version": "1.0.8",
"description": "A group of material design radio buttons",
"authors": [
"The Polymer Authors"
@ -34,11 +34,11 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"main": "paper-radio-group.html",
"_release": "1.0.7",
"_release": "1.0.8",
"_resolution": {
"type": "version",
"tag": "v1.0.7",
"commit": "5f0d8a159a545e4eca1aefa5716d29f230364499"
"tag": "v1.0.8",
"commit": "398bb090d50b1422ba1848ae531cff6e6aff753f"
},
"_source": "git://github.com/PolymerElements/paper-radio-group.git",
"_target": "~1.0.4",

View file

@ -1,6 +1,6 @@
{
"name": "paper-radio-group",
"version": "1.0.7",
"version": "1.0.8",
"description": "A group of material design radio buttons",
"authors": [
"The Polymer Authors"

View file

@ -163,7 +163,7 @@ information about `paper-radio-button`.
newIndex = (newIndex - 1 + length) % length;
} while (this.items[newIndex].disabled)
this.select(this._indexToValue(newIndex));
this._itemActivate(this._indexToValue(newIndex), this.items[newIndex]);
},
/**
@ -178,7 +178,7 @@ information about `paper-radio-button`.
newIndex = (newIndex + 1 + length) % length;
} while (this.items[newIndex].disabled)
this.select(this._indexToValue(newIndex));
this._itemActivate(this._indexToValue(newIndex), this.items[newIndex]);
},
});
</script>

View file

@ -206,6 +206,37 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}, 1);
});
test('arrow keys cause iron-activate events', function(done) {
var g = fixture('WithSelection');
// Needs to be async since the underlying iron-selector uses observeNodes.
Polymer.Base.async(function() {
g.items[0].focus();
var i = 0;
g.addEventListener('iron-activate', function() {
switch (i++) {
case 0:
MockInteractions.pressAndReleaseKeyOn(g, 38);
break;
case 1:
MockInteractions.pressAndReleaseKeyOn(g, 39);
break;
case 2:
MockInteractions.pressAndReleaseKeyOn(g, 40);
break;
default:
done();
}
});
MockInteractions.pressAndReleaseKeyOn(g, 37);
}, 1);
});
});
</script>
</body>