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-button",
"version": "1.0.10",
"version": "1.0.11",
"description": "Material design button",
"authors": [
"The Polymer Authors"
@ -39,11 +39,11 @@
"paper-styles": "polymerelements/paper-styles#^1.0.0"
},
"ignore": [],
"_release": "1.0.10",
"_release": "1.0.11",
"_resolution": {
"type": "version",
"tag": "v1.0.10",
"commit": "53d833818fa738a5160177f9f834a08c839ab2be"
"tag": "v1.0.11",
"commit": "7d0f75300372d91835ae7298593d50987d4a610f"
},
"_source": "git://github.com/PolymerElements/paper-button.git",
"_target": "~1.0.1",

View file

@ -1,6 +1,6 @@
{
"name": "paper-button",
"version": "1.0.10",
"version": "1.0.11",
"description": "Material design button",
"authors": [
"The Polymer Authors"

View file

@ -154,7 +154,7 @@ Custom property | Description | Default
_calculateElevation: function() {
if (!this.raised) {
this.elevation = 0;
this._setElevation(0);
} else {
Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this);
}

View file

@ -19,7 +19,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<script src="../../iron-test-helpers/mock-interactions.js"></script>
<link rel="import" href="../paper-button.html">
</head>
<body>
@ -52,6 +52,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}, 1);
});
test('can be unraised after being raised imperatively', function(done) {
button.raised = true;
expect(button.hasAttribute('raised')).to.be.eql(true);
Polymer.Base.async(function() {
expect(button.elevation).to.be.eql(1);
button.raised = false;
expect(button.hasAttribute('raised')).to.be.eql(false);
Polymer.Base.async(function() {
expect(button.elevation).to.be.eql(0);
done();
}, 1);
}, 1);
});
test('can be disabled imperatively', function() {
button.disabled = true;
expect(button.getAttribute('aria-disabled')).to.be.eql('true');