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

Unified 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, 10 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/encoding/char-decoding-truncated-expected.txt
diff --git a/LayoutTests/fast/encoding/char-decoding-truncated-expected.txt b/LayoutTests/fast/encoding/char-decoding-truncated-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d530248696eec66950e16c7825ea8fcf7786b80f
--- /dev/null
+++ b/LayoutTests/fast/encoding/char-decoding-truncated-expected.txt
@@ -0,0 +1,26 @@
+Test encoding behavior for truncated sequences
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS decode('utf-8', '%E2%88%9A') is 'U+221A'
+PASS decode('utf-8', '%E2%88') is 'U+FFFD/U+FFFD'
+PASS decode('utf-8', '%E2') is 'U+FFFD'
+PASS decode('utf-16', '%69%D8%D6%DE') is 'U+D869/U+DED6'
+PASS decode('utf-16', '%69%D8%D6') is 'U+D869'
+PASS decode('utf-16', '%69%D8') is 'U+D869'
+PASS decode('utf-16', '%69') is ''
+PASS decode('utf-16be', '%D8%69%DE%D6') is 'U+D869/U+DED6'
+PASS decode('utf-16be', '%D8%69%DE') is 'U+D869'
+PASS decode('utf-16be', '%D8%69') is 'U+D869'
+PASS decode('utf-16be', '%D8') is ''
+PASS decode('gb2312', '%A3%A0') is 'U+3000'
+PASS decode('gb2312', '%A3') is 'U+FFFD'
+PASS decode('shift_jis', '%82%d0') is 'U+3072'
+PASS decode('shift_jis', '%82') is 'U+001A'
+PASS decode('windows-949', '%A2%E6') is 'U+20AC'
+PASS decode('windows-949', '%A2') is 'U+FFFD'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« 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