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

Unified Diff: LayoutTests/fast/encoding/api/surrogate-pairs-expected.txt

Issue 15901002: Implement Encoding API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline webexposed global constructor tests Created 7 years, 5 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/api/surrogate-pairs-expected.txt
diff --git a/LayoutTests/fast/encoding/api/surrogate-pairs-expected.txt b/LayoutTests/fast/encoding/api/surrogate-pairs-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..77750a1cd737319d8d84fc1784f75ed9df5ff0e2
--- /dev/null
+++ b/LayoutTests/fast/encoding/api/surrogate-pairs-expected.txt
@@ -0,0 +1,33 @@
+Test invalid UTF-16 surrogate pairs with UTF-8 encoding
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+encoded = new TextEncoder('utf-8').encode("abc123")
+decoded = new TextDecoder('utf-8').decode(encoded)
+PASS decoded is "abc123"
+
+encoded = new TextEncoder('utf-8').encode("���")
+decoded = new TextDecoder('utf-8').decode(encoded)
+FAIL decoded should be �. Was ���.
+
+encoded = new TextEncoder('utf-8').encode("���")
+decoded = new TextDecoder('utf-8').decode(encoded)
+FAIL decoded should be �. Was ���.
+
+encoded = new TextEncoder('utf-8').encode("abc���def")
+decoded = new TextDecoder('utf-8').decode(encoded)
+FAIL decoded should be abc�def. Was abc���def.
+
+encoded = new TextEncoder('utf-8').encode("abc���def")
+decoded = new TextDecoder('utf-8').decode(encoded)
+FAIL decoded should be abc�def. Was abc���def.
+
+encoded = new TextEncoder('utf-8').encode("������")
+decoded = new TextDecoder('utf-8').decode(encoded)
+FAIL decoded should be ��. Was ������.
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/encoding/api/surrogate-pairs.html ('k') | LayoutTests/fast/encoding/api/utf-round-trip.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698