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

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

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 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
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: Not enough arguments. 14 PASS window.btoa() threw exception TypeError: Failed to execute 'btoa' on 'DOMWi ndow': 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: Not enough arguments. 25 PASS window.atob() threw exception TypeError: Failed to execute 'atob' on 'DOMWi ndow': 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==") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
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==\u000a") threw exception InvalidCharacterError: 'atob' fai led: The string to be decoded is not correctly encoded..
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: 'atob' failed: T he string to be decoded contains characters outside of the Latin1 range.. 34 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.. 35 PASS window.atob("z") threw exception InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded..
(...skipping 11 matching lines...) Expand all
47 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..
48 PASS window.atob("===") threw exception InvalidCharacterError: 'atob' failed: Th e 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..
49 PASS window.atob("====") threw exception InvalidCharacterError: 'atob' failed: T he 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..
50 PASS window.atob("=====") threw exception InvalidCharacterError: 'atob' failed: The 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..
51 PASS window.atob is 0 51 PASS window.atob is 0
52 PASS typeof window.atob is "number" 52 PASS typeof window.atob is "number"
53 PASS successfullyParsed is true 53 PASS successfullyParsed is true
54 54
55 TEST COMPLETE 55 TEST COMPLETE
56 56
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/atob-btoa.html ('k') | LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698