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

Unified Diff: third_party/WebKit/LayoutTests/fast/encoding/utf-16-lone-surrogates-expected.txt

Issue 2379333003: UTF-16 Decoder: Convert unpaired surrogates to replacement characters (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
Index: third_party/WebKit/LayoutTests/fast/encoding/utf-16-lone-surrogates-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/encoding/utf-16-lone-surrogates-expected.txt b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-lone-surrogates-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..79609ab7c1494470a2a76089102ea6f75a7732c4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-lone-surrogates-expected.txt
@@ -0,0 +1,18 @@
+CONSOLE WARNING: line 4: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
+Test encoding behavior for lone UTF-16 surrogates
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS decode('utf-16', '%69%D8%D6%DE%00%00') is 'U+D869/U+DED6/U+0000'
+PASS decode('utf-16', '%D6%DE%69%D8%00%00') is 'U+FFFD/U+FFFD/U+0000'
+PASS decode('utf-16', '%69%D8%00%00') is 'U+FFFD/U+0000'
+PASS decode('utf-16', '%D6%DE%00%00') is 'U+FFFD/U+0000'
+PASS decode('utf-16be', '%D8%69%DE%D6%00%00') is 'U+D869/U+DED6/U+0000'
+PASS decode('utf-16be', '%DE%D6%D8%69%00%00') is 'U+FFFD/U+FFFD/U+0000'
+PASS decode('utf-16be', '%D8%69%00%00') is 'U+FFFD/U+0000'
+PASS decode('utf-16be', '%DE%D6%00%00') is 'U+FFFD/U+0000'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698