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

Unified Diff: polymer_1.2.3/bower_components/paper-behaviors/test/paper-button-behavior.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-behaviors/test/paper-button-behavior.html
diff --git a/polymer_1.0.4/bower_components/paper-behaviors/test/paper-button-behavior.html b/polymer_1.2.3/bower_components/paper-behaviors/test/paper-button-behavior.html
similarity index 84%
copy from polymer_1.0.4/bower_components/paper-behaviors/test/paper-button-behavior.html
copy to polymer_1.2.3/bower_components/paper-behaviors/test/paper-button-behavior.html
index 9663938d72d62a8e0c5052f746bb19bd2c498157..74d61a17d07025fc0718974d77b7e86beec08a98 100644
--- a/polymer_1.0.4/bower_components/paper-behaviors/test/paper-button-behavior.html
+++ b/polymer_1.2.3/bower_components/paper-behaviors/test/paper-button-behavior.html
@@ -39,19 +39,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
});
test('normal (no states)', function() {
- assert.equal(button._elevation, 1);
+ assert.equal(button.elevation, 1);
});
test('set disabled property', function() {
button.disabled = true;
- assert.equal(button._elevation, 0);
+ assert.equal(button.elevation, 0);
});
test('pressed and released', function() {
MockInteractions.down(button);
- assert.equal(button._elevation, 4);
+ assert.equal(button.elevation, 4);
MockInteractions.up(button);
- assert.equal(button._elevation, 1);
+ assert.equal(button.elevation, 1);
+ assert.ok(button.hasRipple());
});
suite('a button with toggles', function() {
@@ -62,7 +63,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('activated by tap', function(done) {
MockInteractions.downAndUp(button, function() {
try {
- assert.equal(button._elevation, 4);
+ assert.equal(button.elevation, 4);
+ assert.ok(button.hasRipple());
done();
} catch (e) {
done(e);
@@ -73,7 +75,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('receives focused', function() {
MockInteractions.focus(button);
- assert.equal(button._elevation, 3);
+ assert.equal(button.elevation, 3);
+ assert.ok(button.hasRipple());
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698