| 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.
|
|
|
|
|