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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 Verify Base64 encoding/decoding
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 decoder = new TextDecoder("base64")
7 decoded = decoder.decode(new Uint8Array(bytes))
8 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
9 encoder = new TextEncoder("base64")
10 encoded = encoder.encode(string)
11 PASS encoded.length === bytes.length is true
12 PASS encoded[i] === bytes[i] is true
13 PASS encoded[i] === bytes[i] is true
14 PASS encoded[i] === bytes[i] is true
15 PASS encoded[i] === bytes[i] is true
16 PASS encoded[i] === bytes[i] is true
17 PASS encoded[i] === bytes[i] is true
18 PASS successfullyParsed is true
19
20 TEST COMPLETE
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698