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

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

Issue 19623002: Make atob() throw an InvalidCharacterError on excess padding characters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/Window/atob-btoa.html ('k') | Source/core/page/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=="
(...skipping 18 matching lines...) Expand all
29 PASS window.atob(" YQ==") threw exception InvalidCharacterError: An invalid or i llegal character was specified, such as in an XML name.. 29 PASS window.atob(" YQ==") threw exception InvalidCharacterError: An invalid or i llegal character was specified, such as in an XML name..
30 PASS window.atob("YQ==\u000a") threw exception InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name.. 30 PASS window.atob("YQ==\u000a") threw exception InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name..
31 PASS window.atob("6ek=") is "éé" 31 PASS window.atob("6ek=") is "éé"
32 PASS window.atob("6ek") is "éé" 32 PASS window.atob("6ek") is "éé"
33 PASS window.atob("gIE=") is "€" 33 PASS window.atob("gIE=") is "€"
34 PASS window.atob("тест") threw exception InvalidCharacterError: An invalid or il legal character was specified, such as in an XML name.. 34 PASS window.atob("тест") threw exception InvalidCharacterError: An invalid or il legal character was specified, such as in an XML name..
35 PASS window.atob("z") threw exception InvalidCharacterError: An invalid or illeg al character was specified, such as in an XML name.. 35 PASS window.atob("z") threw exception InvalidCharacterError: An invalid or illeg al character was specified, such as in an XML name..
36 PASS window.atob("zz") is "Ï" 36 PASS window.atob("zz") is "Ï"
37 PASS window.atob("zzz") is "Ï<" 37 PASS window.atob("zzz") is "Ï<"
38 PASS window.atob("zzz=") is "Ï<" 38 PASS window.atob("zzz=") is "Ï<"
39 PASS window.atob("zzz==") is "Ï<" 39 PASS window.atob("zzz==") threw exception InvalidCharacterError: An invalid or i llegal character was specified, such as in an XML name..
40 PASS window.atob("zzz===") is "Ï<" 40 PASS window.atob("zzz===") threw exception InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name..
41 PASS window.atob("zzz====") is "Ï<" 41 PASS window.atob("zzz====") threw exception InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name..
42 PASS window.atob("zzzz") is "Ï<ó" 42 PASS window.atob("zzzz") is "Ï<ó"
43 PASS window.atob("zzzzz") threw exception InvalidCharacterError: An invalid or i llegal character was specified, such as in an XML name.. 43 PASS window.atob("zzzzz") threw exception InvalidCharacterError: An invalid or i llegal character was specified, such as in an XML name..
44 PASS window.atob("z=zz") threw exception InvalidCharacterError: An invalid or il legal character was specified, such as in an XML name.. 44 PASS window.atob("z=zz") threw exception InvalidCharacterError: An invalid or il legal character was specified, such as in an XML name..
45 PASS window.atob("=") threw exception InvalidCharacterError: An invalid or illeg al character was specified, such as in an XML name.. 45 PASS window.atob("=") threw exception InvalidCharacterError: An invalid or illeg al character was specified, such as in an XML name..
46 PASS window.atob("==") threw exception InvalidCharacterError: An invalid or ille gal character was specified, such as in an XML name.. 46 PASS window.atob("==") threw exception InvalidCharacterError: An invalid or ille gal character was specified, such as in an XML name..
47 PASS window.atob("===") threw exception InvalidCharacterError: An invalid or ill egal character was specified, such as in an XML name.. 47 PASS window.atob("===") threw exception InvalidCharacterError: An invalid or ill egal character was specified, such as in an XML name..
48 PASS window.atob("====") threw exception InvalidCharacterError: An invalid or il legal character was specified, such as in an XML name.. 48 PASS window.atob("====") threw exception InvalidCharacterError: An invalid or il legal character was specified, such as in an XML name..
49 PASS window.atob("=====") threw exception InvalidCharacterError: An invalid or i llegal character was specified, such as in an XML name.. 49 PASS window.atob("=====") threw exception InvalidCharacterError: An invalid or i llegal character was specified, such as in an XML name..
50 PASS window.atob is 0 50 PASS window.atob is 0
51 PASS typeof window.atob is "number" 51 PASS typeof window.atob is "number"
52 PASS successfullyParsed is true 52 PASS successfullyParsed is true
53 53
54 TEST COMPLETE 54 TEST COMPLETE
55 55
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/atob-btoa.html ('k') | Source/core/page/DOMWindowBase64.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698