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

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

Issue 215833002: window.atob() returns wrong value when given a string container only white spaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/Window/atob-btoa.html ('k') | Source/wtf/text/Base64.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=="
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 PASS window.atob("тест") threw exception InvalidCharacterError: Failed to execut e 'atob' on 'Window': The string to be decoded contains characters outside of th e Latin1 range.. 42 PASS window.atob("тест") threw exception InvalidCharacterError: Failed to execut e 'atob' on 'Window': The string to be decoded contains characters outside of th e Latin1 range..
43 PASS window.atob("z") threw exception InvalidCharacterError: Failed to execute ' atob' on 'Window': The string to be decoded is not correctly encoded.. 43 PASS window.atob("z") threw exception InvalidCharacterError: Failed to execute ' atob' on 'Window': The string to be decoded is not correctly encoded..
44 PASS window.atob("zz") is "Ï" 44 PASS window.atob("zz") is "Ï"
45 PASS window.atob("zzz") is "Ï<" 45 PASS window.atob("zzz") is "Ï<"
46 PASS window.atob("zzz=") is "Ï<" 46 PASS window.atob("zzz=") is "Ï<"
47 PASS window.atob("zzz==") threw exception InvalidCharacterError: Failed to execu te 'atob' on 'Window': The string to be decoded is not correctly encoded.. 47 PASS window.atob("zzz==") threw exception InvalidCharacterError: Failed to execu te 'atob' on 'Window': The string to be decoded is not correctly encoded..
48 PASS window.atob("zzz===") threw exception InvalidCharacterError: Failed to exec ute 'atob' on 'Window': The string to be decoded is not correctly encoded.. 48 PASS window.atob("zzz===") threw exception InvalidCharacterError: Failed to exec ute 'atob' on 'Window': The string to be decoded is not correctly encoded..
49 PASS window.atob("zzz====") threw exception InvalidCharacterError: Failed to exe cute 'atob' on 'Window': The string to be decoded is not correctly encoded.. 49 PASS window.atob("zzz====") threw exception InvalidCharacterError: Failed to exe cute 'atob' on 'Window': The string to be decoded is not correctly encoded..
50 PASS window.atob("zzz=====") threw exception InvalidCharacterError: Failed to ex ecute 'atob' on 'Window': The string to be decoded is not correctly encoded.. 50 PASS window.atob("zzz=====") threw exception InvalidCharacterError: Failed to ex ecute 'atob' on 'Window': The string to be decoded is not correctly encoded..
51 PASS window.atob("zzzz") is "Ï<ó" 51 PASS window.atob("zzzz") is "Ï<ó"
52 PASS atob(" ") is ""
52 PASS window.atob("zzzzz") threw exception InvalidCharacterError: Failed to execu te 'atob' on 'Window': The string to be decoded is not correctly encoded.. 53 PASS window.atob("zzzzz") threw exception InvalidCharacterError: Failed to execu te 'atob' on 'Window': The string to be decoded is not correctly encoded..
53 PASS window.atob("z=zz") threw exception InvalidCharacterError: Failed to execut e 'atob' on 'Window': The string to be decoded is not correctly encoded.. 54 PASS window.atob("z=zz") threw exception InvalidCharacterError: Failed to execut e 'atob' on 'Window': The string to be decoded is not correctly encoded..
54 PASS window.atob("=") threw exception InvalidCharacterError: Failed to execute ' atob' on 'Window': The string to be decoded is not correctly encoded.. 55 PASS window.atob("=") threw exception InvalidCharacterError: Failed to execute ' atob' on 'Window': The string to be decoded is not correctly encoded..
55 PASS window.atob("==") threw exception InvalidCharacterError: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.. 56 PASS window.atob("==") threw exception InvalidCharacterError: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded..
56 PASS window.atob("===") threw exception InvalidCharacterError: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.. 57 PASS window.atob("===") threw exception InvalidCharacterError: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded..
57 PASS window.atob("====") threw exception InvalidCharacterError: Failed to execut e 'atob' on 'Window': The string to be decoded is not correctly encoded.. 58 PASS window.atob("====") threw exception InvalidCharacterError: Failed to execut e 'atob' on 'Window': The string to be decoded is not correctly encoded..
58 PASS window.atob("=====") threw exception InvalidCharacterError: Failed to execu te 'atob' on 'Window': The string to be decoded is not correctly encoded.. 59 PASS window.atob("=====") threw exception InvalidCharacterError: Failed to execu te 'atob' on 'Window': The string to be decoded is not correctly encoded..
59 PASS window.atob is 0 60 PASS window.atob is 0
60 PASS typeof window.atob is "number" 61 PASS typeof window.atob is "number"
61 PASS successfullyParsed is true 62 PASS successfullyParsed is true
62 63
63 TEST COMPLETE 64 TEST COMPLETE
64 65
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/atob-btoa.html ('k') | Source/wtf/text/Base64.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698