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

Side by Side Diff: LayoutTests/fast/forms/input-value-sanitization-expected.txt

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: Removed control characters truncation logic to match firefox and IE behavior 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 unified diff | Download patch
OLDNEW
1 Tests for value sanitization algorithm. 1 Tests for value sanitization algorithm.
2 2
3 3
4 Email with multiple: 4 Email with multiple:
5 PASS input.value is "tkent@chromium.org,tkent@example.!!!" 5 PASS input.value is "tkent@chromium.org,tkent@example.!!!"
6 Email without multiple: 6 Email without multiple:
7 PASS input.value is "tkent@chromium.org, tkent@example.***" 7 PASS input.value is "tkent@chromium.org, tkent@example.***"
8 8
9 Number: 9 Number:
10 PASS input.value is "65536" 10 PASS input.value is "65536"
11 PASS input.value = "256"; input.value is "256" 11 PASS input.value = "256"; input.value is "256"
12 PASS input.value = ""; input.value is "" 12 PASS input.value = ""; input.value is ""
13 13
14 Range: 14 Range:
15 PASS input.value is "50" 15 PASS input.value is "50"
16 16
17 Text: 17 Text:
18 PASS input.value is " foo bar " 18 PASS input.value is " foo bar "
19 PASS document.getSelection().toString() is " foo bar " 19 PASS document.getSelection().toString() is " foo bar "
20 PASS input.value is String.fromCharCode(0xD800) 20 PASS input.value is String.fromCharCode(0xD800)
21 PASS input.value is "foo\0bar"
22 PASS input.value is "foo\abar"
23 PASS input.value is "foo\bbar"
24 PASS input.value is "foo\tbar"
25 PASS input.value is "foo\vbar"
26 PASS input.value is "foo\fbar"
27 PASS input.value is "foo\ebar"
28 PASS input.value is "foo\^?bar"
21 PASS successfullyParsed is true 29 PASS successfullyParsed is true
22 30
23 TEST COMPLETE 31 TEST COMPLETE
24 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698