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

Side by Side 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, 4 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 invalid UTF-16 surrogate pairs with UTF-8 encoding
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 encoded = new TextEncoder('utf-8').encode("abc123")
7 decoded = new TextDecoder('utf-8').decode(encoded)
8 PASS decoded is "abc123"
9
10 encoded = new TextEncoder('utf-8').encode("���")
11 decoded = new TextDecoder('utf-8').decode(encoded)
12 FAIL decoded should be �. Was ���.
13
14 encoded = new TextEncoder('utf-8').encode("���")
15 decoded = new TextDecoder('utf-8').decode(encoded)
16 FAIL decoded should be �. Was ���.
17
18 encoded = new TextEncoder('utf-8').encode("abc���def")
19 decoded = new TextDecoder('utf-8').decode(encoded)
20 FAIL decoded should be abc�def. Was abc���def.
21
22 encoded = new TextEncoder('utf-8').encode("abc���def")
23 decoded = new TextDecoder('utf-8').decode(encoded)
24 FAIL decoded should be abc�def. Was abc���def.
25
26 encoded = new TextEncoder('utf-8').encode("������")
27 decoded = new TextDecoder('utf-8').decode(encoded)
28 FAIL decoded should be ��. Was ������.
29
30 PASS successfullyParsed is true
31
32 TEST COMPLETE
33
OLDNEW
« 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