Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: polymer_1.2.3/bower_components/paper-button/test/paper-button.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « polymer_1.2.3/bower_components/paper-button/test/index.html ('k') | polymer_1.2.3/bower_components/paper-card/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698