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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength.html

Issue 2380473002: Change the linebreak behavior of minlength and maxlength attributes of TEXTAREA. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength.html b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength.html
index 5992fe2f8f6a7550766f1ef2452d4c9604e6e547..93ebdb748f1ae7a82b41e6319baae92238e45c69 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength.html
@@ -122,7 +122,10 @@ document.execCommand('insertLineBreak');
document.execCommand('insertLineBreak');
document.execCommand('insertLineBreak');
document.execCommand('insertLineBreak');
-shouldBe('textArea.value', '"\\n\\n\\n"');
+document.execCommand('insertLineBreak');
+document.execCommand('insertLineBreak');
+document.execCommand('insertLineBreak');
+shouldBeEqualToString('textArea.value', '\n\n\n\n\n\n');
// According to the HTML5 specification, maxLength is code-point length.
// Blink follows it though WebKit handles it as grapheme length.
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698