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

Unified Diff: LayoutTests/fast/forms/input-value-sanitization.html

Issue 189843008: Value sanitization for input[type=text] should not truncate a value at control character (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bug196640
Patch Set: Created 6 years, 9 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: LayoutTests/fast/forms/input-value-sanitization.html
diff --git a/LayoutTests/fast/forms/input-value-sanitization.html b/LayoutTests/fast/forms/input-value-sanitization.html
index 92e3f533198be135bd014085a6e99ef7be365974..12ba6fc31484ddf9b8734a268d5a0175c161dde4 100644
--- a/LayoutTests/fast/forms/input-value-sanitization.html
+++ b/LayoutTests/fast/forms/input-value-sanitization.html
@@ -55,6 +55,8 @@ shouldBe('document.getSelection().toString()', '" foo bar "');
input.value = String.fromCharCode(0xD800);
shouldBe('input.value', 'String.fromCharCode(0xD800)');
+input.value="foo\vbar";
+shouldBe('input.value', '"foo\\vbar"');
// FIXME: Add more sanitization tests.
// https://bugs.webkit.org/show_bug.cgi?id=37024

Powered by Google App Engine
This is Rietveld 408576698