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

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: 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/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..de1d5d2005bc985bffd1eaaaf2b2f36d994a64f2 100644
--- a/LayoutTests/fast/encoding/api/fatal-flag-expected.txt
+++ b/LayoutTests/fast/encoding/api/fatal-flag-expected.txt
@@ -1,23 +1,22 @@
-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-16le - truncated code unit
+FAIL Fatal flag: utf-16le - surrogate half assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+FAIL Fatal flag: utf-16le - surrogate half assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+FAIL Fatal flag: utf-16le - trail surrogate assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+FAIL Fatal flag: utf-16le - swapped surrogates assert_throws: function "function () {
+ new TextDecoder(t.encoding, {fa..." did not throw
+Harness: the test ran to completion.

Powered by Google App Engine
This is Rietveld 408576698