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

@ -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>