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

Unified Diff: polymer_0.5.4/bower_components/paper-input/test/paper-autogrow-textarea.html

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 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_0.5.4/bower_components/paper-input/test/paper-autogrow-textarea.html
diff --git a/polymer_0.5.0/bower_components/paper-input/test/autogrow.html b/polymer_0.5.4/bower_components/paper-input/test/paper-autogrow-textarea.html
similarity index 88%
copy from polymer_0.5.0/bower_components/paper-input/test/autogrow.html
copy to polymer_0.5.4/bower_components/paper-input/test/paper-autogrow-textarea.html
index 2bc20b48a850635ecb2a22ee56ca4df73e677b5e..937f5476a319ee689efaef1802b1b10f5d0574ee 100644
--- a/polymer_0.5.0/bower_components/paper-input/test/autogrow.html
+++ b/polymer_0.5.4/bower_components/paper-input/test/paper-autogrow-textarea.html
@@ -10,7 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<html>
<head>
<meta charset="UTF-8">
- <title>paper-autogrow-textarea</title>
+ <title>paper-autogrow-textarea tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<script src="../../webcomponentsjs/webcomponents.js"></script>
@@ -124,6 +124,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.equal(getComputedStyle(a1.$.mirror).visibility, 'hidden');
});
+ test('grows with a long word', function(done) {
+ var h1 = a1.offsetHeight;
+
+ t1.value = Array(1000).join("P");
+ dispatchInputEvent(t1);
+
+ flush(function() {
+ var h2 = a1.offsetHeight;
+ assert.ok(h2 > h1);
+ assert.deepEqual(a1.getBoundingClientRect(), t1.getBoundingClientRect());
+ done();
+ });
+ });
+
});
</script>

Powered by Google App Engine
This is Rietveld 408576698