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

Unified Diff: lib/src/iron-autogrow-textarea/test/basic.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/iron-autogrow-textarea/test/basic.html
diff --git a/lib/src/iron-autogrow-textarea/test/basic.html b/lib/src/iron-autogrow-textarea/test/basic.html
index 4ab7c36e6b2679471b907c97c91712772aa8a71e..896c2c47b1a875260eb0d3bc115eeebfbef68d52 100644
--- a/lib/src/iron-autogrow-textarea/test/basic.html
+++ b/lib/src/iron-autogrow-textarea/test/basic.html
@@ -88,6 +88,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.isTrue(finalHeight < initialHeight);
});
+ test('an undefined bindValue is the empty string', function() {
+ var autogrow = fixture('basic');
+ var initialHeight = autogrow.offsetHeight;
+
+ autogrow.bindValue = 'batman\nand\nrobin';
+ var finalHeight = autogrow.offsetHeight;
+ assert.isTrue(finalHeight > initialHeight);
+
+ autogrow.bindValue = undefined;
+ assert.equal(autogrow.offsetHeight, initialHeight);
+ assert.equal(autogrow.textarea.value, '');
+ });
+
test('textarea selection works', function() {
var autogrow = fixture('basic');
var textarea = autogrow.textarea;
« no previous file with comments | « lib/src/iron-autogrow-textarea/iron-autogrow-textarea.html ('k') | lib/src/iron-behaviors/iron-button-state.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698