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

Unified Diff: LayoutTests/fast/encoding/api/fatal-flag-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
« no previous file with comments | « LayoutTests/fast/encoding/api/fatal-flag.html ('k') | LayoutTests/fast/encoding/api/latin-1.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/encoding/api/fatal-flag-expected.txt
diff --git a/LayoutTests/fast/encoding/api/fatal-flag-expected.txt b/LayoutTests/fast/encoding/api/fatal-flag-expected.txt
index d258ad69acb2df14ed91d2f39d7b22d995dcccd9..075578539d5e3c297f2aa3331dd866d42575862b 100644
--- a/LayoutTests/fast/encoding/api/fatal-flag-expected.txt
+++ b/LayoutTests/fast/encoding/api/fatal-flag-expected.txt
@@ -1,23 +1,37 @@
-Test the Encoding API's 'fatal' flag
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0x00])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0xC0])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x00])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0xC0])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0x00])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0xC0])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xFC, 0x80, 0x80, 0x80, 0x80, 0x80])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-PASS new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
-FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd8])) should throw an exception. Was ���.
-FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd8, 0x00, 0x00])) should throw an exception. Was ���\0.
-FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xdc, 0x00, 0x00])) should throw an exception. Was ���\0.
-FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xdc, 0x00, 0xd8])) should throw an exception. Was ������.
-PASS successfullyParsed is true
-
-TEST COMPLETE
+This is a testharness.js-based test.
+PASS Fatal flag: utf-8 - invalid code
+PASS Fatal flag: utf-8 - ends early
+PASS Fatal flag: utf-8 - invalid trail
+PASS Fatal flag: utf-8 - invalid trail
+PASS Fatal flag: utf-8 - ends early
+PASS Fatal flag: utf-8 - invalid trail
+PASS Fatal flag: utf-8 - invalid trail
+PASS Fatal flag: utf-8 - invalid trail
+PASS Fatal flag: utf-8 - invalid trail
+PASS Fatal flag: utf-8 - > 0x10FFFF
+PASS Fatal flag: utf-8 - obsolete lead byte
+PASS Fatal flag: utf-8 - overlong U+0000 - 2 bytes
+PASS Fatal flag: utf-8 - overlong U+0000 - 3 bytes
+PASS Fatal flag: utf-8 - overlong U+0000 - 4 bytes
+PASS Fatal flag: utf-8 - overlong U+0000 - 5 bytes
+PASS Fatal flag: utf-8 - overlong U+0000 - 6 bytes
+PASS Fatal flag: utf-8 - overlong U+007F - 2 bytes
+PASS Fatal flag: utf-8 - overlong U+007F - 3 bytes
+PASS Fatal flag: utf-8 - overlong U+007F - 4 bytes
+PASS Fatal flag: utf-8 - overlong U+007F - 5 bytes
+PASS Fatal flag: utf-8 - overlong U+007F - 6 bytes
+PASS Fatal flag: utf-8 - overlong U+07FF - 3 bytes
+PASS Fatal flag: utf-8 - overlong U+07FF - 4 bytes
+PASS Fatal flag: utf-8 - overlong U+07FF - 5 bytes
+PASS Fatal flag: utf-8 - overlong U+07FF - 6 bytes
+PASS Fatal flag: utf-8 - overlong U+FFFF - 4 bytes
+PASS Fatal flag: utf-8 - overlong U+FFFF - 5 bytes
+PASS Fatal flag: utf-8 - overlong U+FFFF - 6 bytes
+PASS Fatal flag: utf-8 - overlong U+10FFFF - 5 bytes
+PASS Fatal flag: utf-8 - overlong U+10FFFF - 6 bytes
+PASS Fatal flag: utf-8 - lead surrogate
+PASS Fatal flag: utf-8 - trail surrogate
+PASS Fatal flag: utf-8 - surrogate pair
+PASS Fatal flag: utf-16le - truncated code unit
+Harness: the test ran to completion.
« no previous file with comments | « LayoutTests/fast/encoding/api/fatal-flag.html ('k') | LayoutTests/fast/encoding/api/latin-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698