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

Side by Side Diff: LayoutTests/fast/dom/Window/atob-btoa-expected.txt

Issue 58143002: WindowBase64::atob() does not remove space characters from input (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix nits Created 7 years, 1 month 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
« no previous file with comments | « LayoutTests/fast/dom/Window/atob-btoa.html ('k') | Source/core/frame/DOMWindowBase64.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 PASS window.atob("YQ==") is "a" 1 PASS window.atob("YQ==") is "a"
2 PASS window.atob("YWI=") is "ab" 2 PASS window.atob("YWI=") is "ab"
3 PASS window.atob("YWJj") is "abc" 3 PASS window.atob("YWJj") is "abc"
4 PASS window.atob("YWJjZA==") is "abcd" 4 PASS window.atob("YWJjZA==") is "abcd"
5 PASS window.atob("YWJjZGU=") is "abcde" 5 PASS window.atob("YWJjZGU=") is "abcde"
6 PASS window.atob("YWJjZGVm") is "abcdef" 6 PASS window.atob("YWJjZGVm") is "abcdef"
7 PASS window.btoa("a") is "YQ==" 7 PASS window.btoa("a") is "YQ=="
8 PASS window.btoa("ab") is "YWI=" 8 PASS window.btoa("ab") is "YWI="
9 PASS window.btoa("abc") is "YWJj" 9 PASS window.btoa("abc") is "YWJj"
10 PASS window.btoa("abcd") is "YWJjZA==" 10 PASS window.btoa("abcd") is "YWJjZA=="
11 PASS window.btoa("abcde") is "YWJjZGU=" 11 PASS window.btoa("abcde") is "YWJjZGU="
12 PASS window.btoa("abcdef") is "YWJjZGVm" 12 PASS window.btoa("abcdef") is "YWJjZGVm"
13 PASS typeof window.btoa is "function" 13 PASS typeof window.btoa is "function"
14 PASS window.btoa() threw exception TypeError: Failed to execute 'btoa' on 'Windo w': 1 argument required, but only 0 present.. 14 PASS window.btoa() threw exception TypeError: Failed to execute 'btoa' on 'Windo w': 1 argument required, but only 0 present..
15 PASS window.btoa("") is "" 15 PASS window.btoa("") is ""
16 PASS window.btoa(null) is "bnVsbA==" 16 PASS window.btoa(null) is "bnVsbA=="
17 PASS window.btoa(undefined) is "dW5kZWZpbmVk" 17 PASS window.btoa(undefined) is "dW5kZWZpbmVk"
18 PASS window.btoa(window) is "W29iamVjdCBXaW5kb3dd" 18 PASS window.btoa(window) is "W29iamVjdCBXaW5kb3dd"
19 PASS window.btoa("éé") is "6ek=" 19 PASS window.btoa("éé") is "6ek="
20 PASS window.btoa("\u0080\u0081") is "gIE=" 20 PASS window.btoa("\u0080\u0081") is "gIE="
21 PASS window.btoa("тест") threw exception InvalidCharacterError: 'btoa' failed: T he string to be encoded contains characters outside of the Latin1 range.. 21 PASS window.btoa("тест") threw exception InvalidCharacterError: 'btoa' failed: T he string to be encoded contains characters outside of the Latin1 range..
22 PASS window.btoa is 0 22 PASS window.btoa is 0
23 PASS typeof window.btoa is "number" 23 PASS typeof window.btoa is "number"
24 PASS typeof window.atob is "function" 24 PASS typeof window.atob is "function"
25 PASS window.atob() threw exception TypeError: Failed to execute 'atob' on 'Windo w': 1 argument required, but only 0 present.. 25 PASS window.atob() threw exception TypeError: Failed to execute 'atob' on 'Windo w': 1 argument required, but only 0 present..
26 PASS window.atob("") is "" 26 PASS window.atob("") is ""
27 PASS window.atob(null) is "žée" 27 PASS window.atob(null) is "žée"
28 PASS window.atob(undefined) threw exception InvalidCharacterError: 'atob' failed : The string to be decoded is not correctly encoded.. 28 PASS window.atob(undefined) threw exception InvalidCharacterError: 'atob' failed : The string to be decoded is not correctly encoded..
29 PASS window.atob(" YQ==") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 29 PASS window.atob(" YQ==") is "a"
30 PASS window.atob("YQ==\u000a") threw exception InvalidCharacterError: 'atob' fai led: The string to be decoded is not correctly encoded.. 30 PASS window.atob("YQ== ") is "a"
31 PASS window.atob("YQ== ") is "a"
32 PASS window.atob("YQ==\u000a") is "a"
33 PASS window.atob("YQ ==") is "a"
34 PASS window.atob("YQ\t==") is "a"
35 PASS window.atob("YQ\n==") is "a"
36 PASS window.atob("YQ\f==") is "a"
37 PASS window.atob("YQ\r==") is "a"
38 PASS window.atob("YQ\t\n\f\r ==") is "a"
31 PASS window.atob("6ek=") is "éé" 39 PASS window.atob("6ek=") is "éé"
32 PASS window.atob("6ek") is "éé" 40 PASS window.atob("6ek") is "éé"
33 PASS window.atob("gIE=") is "€" 41 PASS window.atob("gIE=") is "€"
34 PASS window.atob("тест") threw exception InvalidCharacterError: 'atob' failed: T he string to be decoded contains characters outside of the Latin1 range.. 42 PASS window.atob("тест") threw exception InvalidCharacterError: 'atob' failed: T he string to be decoded contains characters outside of the Latin1 range..
35 PASS window.atob("z") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 43 PASS window.atob("z") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
36 PASS window.atob("zz") is "Ï" 44 PASS window.atob("zz") is "Ï"
37 PASS window.atob("zzz") is "Ï<" 45 PASS window.atob("zzz") is "Ï<"
38 PASS window.atob("zzz=") is "Ï<" 46 PASS window.atob("zzz=") is "Ï<"
39 PASS window.atob("zzz==") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 47 PASS window.atob("zzz==") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
40 PASS window.atob("zzz===") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 48 PASS window.atob("zzz===") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
41 PASS window.atob("zzz====") threw exception InvalidCharacterError: 'atob' failed : The string to be decoded is not correctly encoded.. 49 PASS window.atob("zzz====") threw exception InvalidCharacterError: 'atob' failed : The string to be decoded is not correctly encoded..
42 PASS window.atob("zzz=====") threw exception InvalidCharacterError: 'atob' faile d: The string to be decoded is not correctly encoded.. 50 PASS window.atob("zzz=====") threw exception InvalidCharacterError: 'atob' faile d: The string to be decoded is not correctly encoded..
43 PASS window.atob("zzzz") is "Ï<ó" 51 PASS window.atob("zzzz") is "Ï<ó"
44 PASS window.atob("zzzzz") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 52 PASS window.atob("zzzzz") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
45 PASS window.atob("z=zz") threw exception InvalidCharacterError: 'atob' failed: T he string to be decoded is not correctly encoded.. 53 PASS window.atob("z=zz") threw exception InvalidCharacterError: 'atob' failed: T he string to be decoded is not correctly encoded..
46 PASS window.atob("=") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 54 PASS window.atob("=") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
47 PASS window.atob("==") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 55 PASS window.atob("==") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
48 PASS window.atob("===") threw exception InvalidCharacterError: 'atob' failed: Th e string to be decoded is not correctly encoded.. 56 PASS window.atob("===") threw exception InvalidCharacterError: 'atob' failed: Th e string to be decoded is not correctly encoded..
49 PASS window.atob("====") threw exception InvalidCharacterError: 'atob' failed: T he string to be decoded is not correctly encoded.. 57 PASS window.atob("====") threw exception InvalidCharacterError: 'atob' failed: T he string to be decoded is not correctly encoded..
50 PASS window.atob("=====") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.. 58 PASS window.atob("=====") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
51 PASS window.atob is 0 59 PASS window.atob is 0
52 PASS typeof window.atob is "number" 60 PASS typeof window.atob is "number"
53 PASS successfullyParsed is true 61 PASS successfullyParsed is true
54 62
55 TEST COMPLETE 63 TEST COMPLETE
56 64
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/atob-btoa.html ('k') | Source/core/frame/DOMWindowBase64.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698