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

Unified Diff: lib/src/paper-behaviors/test/paper-button-behavior.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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: lib/src/paper-behaviors/test/paper-button-behavior.html
diff --git a/lib/src/paper-behaviors/test/paper-button-behavior.html b/lib/src/paper-behaviors/test/paper-button-behavior.html
index 9663938d72d62a8e0c5052f746bb19bd2c498157..74d61a17d07025fc0718974d77b7e86beec08a98 100644
--- a/lib/src/paper-behaviors/test/paper-button-behavior.html
+++ b/lib/src/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>
« no previous file with comments | « lib/src/paper-behaviors/paper-ripple-behavior.html ('k') | lib/src/paper-behaviors/test/paper-checked-element-behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698