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

Side by Side Diff: third_party/WebKit/LayoutTests/platform/linux/fast/url/segments-from-data-url-expected.txt

Issue 1409293007: new URL('') should throw TypeError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated testcase Created 5 years 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
1 Test URL segmentation 1 Test URL segmentation
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS segments('http://user:pass@foo:21/bar;par?b#c') is '["http:","foo","21","/b ar;par","?b","#c"]' 6 PASS segments('http://user:pass@foo:21/bar;par?b#c') is '["http:","foo","21","/b ar;par","?b","#c"]'
7 PASS segments('http:foo.com') is '["http:","foo.com","","/","",""]' 7 PASS segments('http:foo.com') is '["http:","foo.com","","/","",""]'
8 PASS segments('\t :foo.com \n') is '[":","","","","",""]' 8 PASS segments('\t :foo.com \n') is '[":","","","","",""]'
9 PASS segments(' foo.com ') is '[":","","","","",""]' 9 PASS segments(' foo.com ') is '[":","","","","",""]'
10 PASS segments('a:\t foo.com') is '["a:","",""," foo.com","",""]' 10 PASS segments('a:\t foo.com') is '["a:","",""," foo.com","",""]'
11 PASS segments('http://f:21/ b ? d # e ') is '["http:","f","21","/%20b%20","?%20d %20","# e"]' 11 PASS segments('http://f:21/ b ? d # e ') is '["http:","f","21","/%20b%20","?%20d %20","# e"]'
12 PASS segments('http://f:/c') is '["http:","f","","/c","",""]' 12 PASS segments('http://f:/c') is '["http:","f","","/c","",""]'
13 PASS segments('http://f:0/c') is '["http:","f","0","/c","",""]' 13 PASS segments('http://f:0/c') is '["http:","f","0","/c","",""]'
14 PASS segments('http://f:00000000000000/c') is '["http:","f","0","/c","",""]' 14 PASS segments('http://f:00000000000000/c') is '["http:","f","0","/c","",""]'
15 FAIL segments('http://f:00000000000000000000080/c') should be ["http:","f","0"," /c","",""]. Was ["http:","f","","/c","",""]. 15 FAIL segments('http://f:00000000000000000000080/c') should be ["http:","f","0"," /c","",""]. Was ["http:","f","","/c","",""].
16 FAIL segments('http://f:b/c') should be [":","","","","",""]. Was [":","","0","" ,"",""]. 16 FAIL segments('http://f:b/c') should be [":","","","","",""]. Was [":","","0","" ,"",""].
17 FAIL segments('http://f: /c') should be [":","","","","",""]. Was [":","","0","" ,"",""]. 17 FAIL segments('http://f: /c') should be [":","","","","",""]. Was [":","","0","" ,"",""].
18 FAIL segments('http://f:\n/c') should be [":","","","","",""]. Was ["http:","f", "","/c","",""]. 18 FAIL segments('http://f:\n/c') should be [":","","","","",""]. Was ["http:","f", "","/c","",""].
19 FAIL segments('http://f:fifty-two/c') should be [":","","","","",""]. Was [":"," ","0","","",""]. 19 FAIL segments('http://f:fifty-two/c') should be [":","","","","",""]. Was [":"," ","0","","",""].
20 PASS segments('http://f:999999/c') is '[":","","0","","",""]' 20 PASS segments('http://f:999999/c') is '[":","","0","","",""]'
21 FAIL segments('http://f: 21 / b ? d # e ') should be [":","","","","",""]. Was [ ":","","0","","",""]. 21 FAIL segments('http://f: 21 / b ? d # e ') should be [":","","","","",""]. Was [ ":","","0","","",""].
22 PASS segments('') is '["data:","","","text/plain,baseURL","",""]' 22 PASS segments('') is '[":","","","","",""]'
23 PASS segments(' \t') is '["data:","","","text/plain,baseURL","",""]' 23 PASS segments(' \t') is '[":","","","","",""]'
24 PASS segments(':foo.com/') is '[":","","","","",""]' 24 PASS segments(':foo.com/') is '[":","","","","",""]'
25 PASS segments(':foo.com\\') is '[":","","","","",""]' 25 PASS segments(':foo.com\\') is '[":","","","","",""]'
26 PASS segments(':') is '[":","","","","",""]' 26 PASS segments(':') is '[":","","","","",""]'
27 PASS segments(':a') is '[":","","","","",""]' 27 PASS segments(':a') is '[":","","","","",""]'
28 PASS segments(':/') is '[":","","","","",""]' 28 PASS segments(':/') is '[":","","","","",""]'
29 PASS segments(':\\') is '[":","","","","",""]' 29 PASS segments(':\\') is '[":","","","","",""]'
30 PASS segments(':#') is '[":","","","","",""]' 30 PASS segments(':#') is '[":","","","","",""]'
31 PASS segments('#') is '["data:","","","text/plain,baseURL","",""]' 31 PASS segments('#') is '["data:","","","text/plain,baseURL","",""]'
32 PASS segments('#/') is '["data:","","","text/plain,baseURL","","#/"]' 32 PASS segments('#/') is '["data:","","","text/plain,baseURL","","#/"]'
33 PASS segments('#\\') is '["data:","","","text/plain,baseURL","","#\\\\"]' 33 PASS segments('#\\') is '["data:","","","text/plain,baseURL","","#\\\\"]'
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 PASS segments('http://[2001::1') is '[":","","","","",""]' 66 PASS segments('http://[2001::1') is '[":","","","","",""]'
67 PASS segments('http://2001::1]') is '[":","","","","",""]' 67 PASS segments('http://2001::1]') is '[":","","","","",""]'
68 PASS segments('http://2001::1]:80') is '[":","","","","",""]' 68 PASS segments('http://2001::1]:80') is '[":","","","","",""]'
69 PASS segments('http://[2001::1]') is '["http:","[2001::1]","","/","",""]' 69 PASS segments('http://[2001::1]') is '["http:","[2001::1]","","/","",""]'
70 PASS segments('http://[2001::1]:80') is '["http:","[2001::1]","","/","",""]' 70 PASS segments('http://[2001::1]:80') is '["http:","[2001::1]","","/","",""]'
71 PASS segments('http://[[::]]') is '[":","","","","",""]' 71 PASS segments('http://[[::]]') is '[":","","","","",""]'
72 PASS successfullyParsed is true 72 PASS successfullyParsed is true
73 73
74 TEST COMPLETE 74 TEST COMPLETE
75 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698