2010-12-14 Cosmin Truta <ctruta@chromium.org>
[WebKit-https.git] / LayoutTests / platform / chromium-win / fast / url / segments-from-data-url-expected.txt
1 Test URL segmentation\r
2 \r
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".\r
4 \r
5 \r
6 PASS segments('http://user:pass@foo:21/bar;par?b#c') is '["http:","foo","21","/bar;par","?b","#c"]'\r
7 PASS segments('http:foo.com') is '["http:","foo.com","0","/","",""]'\r
8 PASS segments('\t   :foo.com   \n') is '[":","","0","","",""]'\r
9 PASS segments(' foo.com  ') is '[":","","0","","",""]'\r
10 FAIL segments('a:\t foo.com') should be ["a:","","0"," foo.com","",""]. Was ["file:","","0","/A:/%20foo.com","",""].\r
11 PASS segments('http://f:21/ b ? d # e ') is '["http:","f","21","/%20b%20","?%20d%20","# e"]'\r
12 PASS segments('http://f:/c') is '["http:","f","0","/c","",""]'\r
13 PASS segments('http://f:0/c') is '["http:","f","0","/c","",""]'\r
14 PASS segments('http://f:00000000000000/c') is '["http:","f","0","/c","",""]'\r
15 PASS segments('http://f:00000000000000000000080/c') is '["http:","f","0","/c","",""]'\r
16 PASS segments('http://f:b/c') is '[":","","0","","",""]'\r
17 PASS segments('http://f: /c') is '[":","","0","","",""]'\r
18 PASS segments('http://f:\n/c') is '["http:","f","0","/c","",""]'\r
19 PASS segments('http://f:fifty-two/c') is '[":","","0","","",""]'\r
20 PASS segments('http://f:999999/c') is '[":","","0","","",""]'\r
21 PASS segments('http://f: 21 / b ? d # e ') is '[":","","0","","",""]'\r
22 PASS segments('') is '["data:","","0","text/plain,baseURL","",""]'\r
23 PASS segments('  \t') is '["data:","","0","text/plain,baseURL","",""]'\r
24 PASS segments(':foo.com/') is '[":","","0","","",""]'\r
25 PASS segments(':foo.com\\') is '[":","","0","","",""]'\r
26 PASS segments(':') is '[":","","0","","",""]'\r
27 PASS segments(':a') is '[":","","0","","",""]'\r
28 PASS segments(':/') is '[":","","0","","",""]'\r
29 PASS segments(':\\') is '[":","","0","","",""]'\r
30 PASS segments(':#') is '[":","","0","","",""]'\r
31 PASS segments('#') is '[":","","0","","",""]'\r
32 PASS segments('#/') is '[":","","0","","",""]'\r
33 PASS segments('#\\') is '[":","","0","","",""]'\r
34 PASS segments('#;?') is '[":","","0","","",""]'\r
35 PASS segments('?') is '[":","","0","","",""]'\r
36 PASS segments('/') is '[":","","0","","",""]'\r
37 PASS segments(':23') is '[":","","0","","",""]'\r
38 PASS segments('/:23') is '["data:","","0","/:23","",""]'\r
39 PASS segments('//') is '[":","","0","","",""]'\r
40 PASS segments('::') is '[":","","0","","",""]'\r
41 PASS segments('::23') is '[":","","0","","",""]'\r
42 PASS segments('foo://') is '["foo:","","0","//","",""]'\r
43 PASS segments('http://a:b@c:29/d') is '["http:","c","29","/d","",""]'\r
44 PASS segments('http::@c:29') is '["http:","c","29","/","",""]'\r
45 PASS segments('http://&a:foo(b]c@d:2/') is '["http:","d","2","/","",""]'\r
46 PASS segments('http://::@c@d:2') is '["http:","d","2","/","",""]'\r
47 PASS segments('http://foo.com:b@d/') is '["http:","d","0","/","",""]'\r
48 PASS segments('http://foo.com/\\@') is '["http:","foo.com","0","//@","",""]'\r
49 PASS segments('http:\\\\foo.com\\') is '["http:","foo.com","0","/","",""]'\r
50 PASS segments('http:\\\\a\\b:c\\d@foo.com\\') is '["http:","a","0","/b:c/d@foo.com/","",""]'\r
51 PASS segments('foo:/') is '["foo:","","0","/","",""]'\r
52 PASS segments('foo:/bar.com/') is '["foo:","","0","/bar.com/","",""]'\r
53 PASS segments('foo://///////') is '["foo:","","0","/////////","",""]'\r
54 PASS segments('foo://///////bar.com/') is '["foo:","","0","/////////bar.com/","",""]'\r
55 PASS segments('foo:////://///') is '["foo:","","0","////://///","",""]'\r
56 FAIL segments('c:/foo') should be ["c:","","0","/foo","",""]. Was ["file:","","0","/C:/foo","",""].\r
57 PASS segments('//foo/bar') is '[":","","0","","",""]'\r
58 PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","0","/path;a","??e","#f#g"]'\r
59 PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","0","/abcd","?efgh?ijkl",""]'\r
60 PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","0","/abcd","","#foo?bar"]'\r
61 PASS segments('[61:24:74]:98') is '["data:","","0","text/[61:24:74]:98","",""]'\r
62 PASS segments('http://[61:27]:98') is '[":","","0","","",""]'\r
63 PASS segments('http:[61:27]/:foo') is '[":","","0","","",""]'\r
64 PASS segments('http://[1::2]:3:4') is '[":","","0","","",""]'\r
65 PASS segments('http://2001::1') is '[":","","0","","",""]'\r
66 PASS segments('http://[2001::1') is '[":","","0","","",""]'\r
67 PASS segments('http://2001::1]') is '[":","","0","","",""]'\r
68 PASS segments('http://2001::1]:80') is '[":","","0","","",""]'\r
69 PASS segments('http://[2001::1]') is '["http:","[2001::1]","0","/","",""]'\r
70 PASS segments('http://[2001::1]:80') is '["http:","[2001::1]","0","/","",""]'\r
71 PASS segments('http://[[::]]') is '[":","","0","","",""]'\r
72 PASS successfullyParsed is true\r
73 \r
74 TEST COMPLETE\r
75 \r