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

Side by Side Diff: LayoutTests/fast/encoding/char-decoding-truncated-expected.txt

Issue 23532016: Handle odd data lengths in UTF-16 decoder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 Test encoding behavior for truncated sequences
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS decode('utf-8', '%E2%88%9A') is 'U+221A'
7 PASS decode('utf-8', '%E2%88') is 'U+FFFD/U+FFFD'
8 PASS decode('utf-8', '%E2') is 'U+FFFD'
9 PASS decode('utf-16', '%69%D8%D6%DE') is 'U+D869/U+DED6'
10 PASS decode('utf-16', '%69%D8%D6') is 'U+D869'
11 PASS decode('utf-16', '%69%D8') is 'U+D869'
12 PASS decode('utf-16', '%69') is ''
13 PASS decode('utf-16be', '%D8%69%DE%D6') is 'U+D869/U+DED6'
14 PASS decode('utf-16be', '%D8%69%DE') is 'U+D869'
15 PASS decode('utf-16be', '%D8%69') is 'U+D869'
16 PASS decode('utf-16be', '%D8') is ''
17 PASS decode('gb2312', '%A3%A0') is 'U+3000'
18 PASS decode('gb2312', '%A3') is 'U+FFFD'
19 PASS decode('shift_jis', '%82%d0') is 'U+3072'
20 PASS decode('shift_jis', '%82') is 'U+001A'
21 PASS decode('windows-949', '%A2%E6') is 'U+20AC'
22 PASS decode('windows-949', '%A2') is 'U+FFFD'
23 PASS successfullyParsed is true
24
25 TEST COMPLETE
26
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/char-decoding-truncated.html ('k') | LayoutTests/fast/encoding/resources/char-decoding-utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698