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

Unified Diff: LayoutTests/fast/encoding/api/fatal-flag-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, 5 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/legacy-encode.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
new file mode 100644
index 0000000000000000000000000000000000000000..f3478dfe2ad2a9526d51338d3bc1ae4e6b0b5438
--- /dev/null
+++ b/LayoutTests/fast/encoding/api/fatal-flag-expected.txt
@@ -0,0 +1,23 @@
+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: The encoded data was not valid..
+PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0x00])) threw exception EncodingError: The encoded data was not valid..
+PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0xC0])) threw exception EncodingError: The encoded data was not valid..
+PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0])) threw exception EncodingError: The encoded data was not valid..
+PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x00])) threw exception EncodingError: The encoded data was not valid..
+PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0xC0])) threw exception EncodingError: The encoded data was not valid..
+PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0x00])) threw exception EncodingError: The encoded data was not valid..
+PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0xC0])) threw exception EncodingError: 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: The encoded data was not valid..
+FAIL new TextDecoder('utf-16', {fatal: true}).decode(new Uint8Array([0x00])) should throw an exception. Was .
+FAIL new TextDecoder('utf-16', {fatal: true}).decode(new Uint8Array([0x00, 0xd8])) should throw an exception. Was ���.
+FAIL new TextDecoder('utf-16', {fatal: true}).decode(new Uint8Array([0x00, 0xd8, 0x00, 0x00])) should throw an exception. Was ���\0.
+FAIL new TextDecoder('utf-16', {fatal: true}).decode(new Uint8Array([0x00, 0xdc, 0x00, 0x00])) should throw an exception. Was ���\0.
+FAIL new TextDecoder('utf-16', {fatal: true}).decode(new Uint8Array([0x00, 0xdc, 0x00, 0xd8])) should throw an exception. Was ������.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/encoding/api/fatal-flag.html ('k') | LayoutTests/fast/encoding/api/legacy-encode.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698