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

Unified Diff: LayoutTests/fast/encoding/api/utf16-surrogates-expected.txt

Issue 240283013: Convert Encoding API tests to W3C testharness.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move UTF-16 surrogate tests to separate file Created 6 years, 8 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/utf16-surrogates-expected.txt
diff --git a/LayoutTests/fast/encoding/api/utf16-surrogates-expected.txt b/LayoutTests/fast/encoding/api/utf16-surrogates-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..dd90007ce06b36357f595d27db1866f6b098a710
--- /dev/null
+++ b/LayoutTests/fast/encoding/api/utf16-surrogates-expected.txt
@@ -0,0 +1,18 @@
+This is a testharness.js-based test.
+FAIL utf-16le - lone surrogate lead assert_equals: expected "�" but got "���"
+FAIL utf-16le - lone surrogate lead (fatal flag set) assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+FAIL utf-16le - lone surrogate trail assert_equals: expected "�" but got "���"
+FAIL utf-16le - lone surrogate trail (fatal flag set) assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+FAIL utf-16le - unmatched surrogate lead assert_equals: expected "�\0" but got "���\0"
+FAIL utf-16le - unmatched surrogate lead (fatal flag set) assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+FAIL utf-16le - unmatched surrogate trail assert_equals: expected "�\0" but got "���\0"
+FAIL utf-16le - unmatched surrogate trail (fatal flag set) assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+FAIL utf-16le - swapped surrogate pair assert_equals: expected "��" but got "������"
+FAIL utf-16le - swapped surrogate pair (fatal flag set) assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+Harness: the test ran to completion.
+
« no previous file with comments | « LayoutTests/fast/encoding/api/utf16-surrogates.html ('k') | LayoutTests/fast/encoding/api/utf8-surrogates.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698