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

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

Issue 143943017: Added Base64 support in TextEncoder and TextDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/base64-expected.txt
diff --git a/LayoutTests/fast/encoding/api/base64-expected.txt b/LayoutTests/fast/encoding/api/base64-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8f950f195f8238d6478c6b6d6e096ebe55f98ed0
--- /dev/null
+++ b/LayoutTests/fast/encoding/api/base64-expected.txt
@@ -0,0 +1,21 @@
+Verify Base64 encoding/decoding
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+decoder = new TextDecoder("base64")
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+encoder = new TextEncoder("base64")
+encoded = encoder.encode(string)
+PASS encoded.length === bytes.length is true
+PASS encoded[i] === bytes[i] is true
+PASS encoded[i] === bytes[i] is true
+PASS encoded[i] === bytes[i] is true
+PASS encoded[i] === bytes[i] is true
+PASS encoded[i] === bytes[i] is true
+PASS encoded[i] === bytes[i] is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698