| Index: polymer_1.2.3/bower_components/paper-button/test/paper-button.html
|
| diff --git a/polymer_1.0.4/bower_components/paper-button/test/paper-button.html b/polymer_1.2.3/bower_components/paper-button/test/paper-button.html
|
| similarity index 75%
|
| copy from polymer_1.0.4/bower_components/paper-button/test/paper-button.html
|
| copy to polymer_1.2.3/bower_components/paper-button/test/paper-button.html
|
| index 797688cefa4beb3f06246501f91195c0e60fccbc..54200e63f0260cc16a564fb09aa923fe011cbfdb 100644
|
| --- a/polymer_1.0.4/bower_components/paper-button/test/paper-button.html
|
| +++ b/polymer_1.2.3/bower_components/paper-button/test/paper-button.html
|
| @@ -16,11 +16,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
| <script src="../../web-component-tester/browser.js"></script>
|
| - <script src="../../test-fixture/test-fixture-mocha.js"></script>
|
| <script src="../../iron-test-helpers/mock-interactions.js"></script>
|
|
|
| <link rel="import" href="../paper-button.html">
|
| - <link rel="import" href="../../test-fixture/test-fixture.html">
|
|
|
| </head>
|
| <body>
|
| @@ -46,7 +44,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| Polymer.Base.async(function() {
|
| try {
|
| - expect(button._elevation).to.be.eql(1);
|
| + expect(button.elevation).to.be.eql(1);
|
| done();
|
| } catch (e) {
|
| done(e);
|
| @@ -54,8 +52,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| }, 1);
|
| });
|
|
|
| - test('has aria role "button"', function() {
|
| - expect(button.getAttribute('role')).to.be.eql('button');
|
| + 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() {
|
| @@ -78,6 +88,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| MockInteractions.pressEnter(button);
|
| });
|
| });
|
| +
|
| + suite('<paper-button>', function() {
|
| + var button;
|
| +
|
| + setup(function() {
|
| + button = fixture('TrivialButton');
|
| + });
|
| +
|
| + test('has aria role "button"', function() {
|
| + expect(button.getAttribute('role')).to.be.eql('button');
|
| + });
|
| +
|
| + a11ySuite('TrivialButton');
|
| + });
|
| +
|
| </script>
|
| </body>
|
| </html>
|
|
|