Changeset 84606 in webkit
- Timestamp:
- Apr 21, 2011 11:46:13 PM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 9 added
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r84604 r84606 1 2011-04-21 Chris Weber <chris@lookout.net> 2 3 Reviewed by Adam Barth. 4 5 Add more test coverage to fast/url 6 https://bugs.webkit.org/show_bug.cgi?id=59142 7 8 The PASS/FAIL results for host, path, and port are set to match 9 Chromium. The PASS/FAIL results for idna2003 and idna2008 are set to 10 match those specifications. 11 12 * fast/url/host-expected.txt: 13 * fast/url/idna2003-expected.txt: Added. 14 * fast/url/idna2003.html: Added. 15 * fast/url/idna2008-expected.txt: Added. 16 * fast/url/idna2008.html: Added. 17 * fast/url/path-expected.txt: 18 * fast/url/port-expected.txt: 19 * fast/url/script-tests/host.js: 20 * fast/url/script-tests/idna2003.js: Added. 21 * fast/url/script-tests/idna2008.js: Added. 22 * fast/url/script-tests/path.js: 23 * fast/url/script-tests/port.js: 24 1 25 2011-04-21 Beth Dakin <bdakin@apple.com> 2 26 -
trunk/LayoutTests/fast/url/host-expected.txt
r78395 r84606 29 29 PASS canonicalize('http://[google.com]/') is 'http://[google.com]/' 30 30 FAIL canonicalize('http://т(/') should be http://xn--%28-7ed/. Was http://xn--(-8tb/. 31 PASS canonicalize('http://go\\@ogle.com/') is 'http://go/@ogle.com/' 32 PASS canonicalize('http://go/@ogle.com/') is 'http://go/@ogle.com/' 33 FAIL canonicalize('http://www.lookout.net::==80::==443::/') should be http://www.lookout.net::%3D%3D80::%3D%3D443:/. Was http://www.lookout.net::==80::==443::/. 34 PASS canonicalize('http://www.lookout.net::80::443/') is 'http://www.lookout.net::80::443/' 35 PASS canonicalize('http://\.//') is 'http://.//' 36 FAIL canonicalize('http:////:@//') should be http:////. Was http://:@//. 37 PASS canonicalize('http://\google.com/foo/') is 'http://google.com/foo/' 38 FAIL canonicalize('http://\\google.com/foo/') should be http://google.com/foo/. Was http:/google.com/foo/. 39 PASS canonicalize('http:////asdf@//') is 'http://asdf@//' 40 PASS canonicalize('http:////:81/') is 'http://:81/' 41 FAIL canonicalize('http://:///') should be http://///. Was http:///. 42 PASS canonicalize('http://c:/') is 'http://c/' 43 PASS canonicalize('http://xxxx:/') is 'http://xxxx/' 44 PASS canonicalize('http://.:./') is 'http://.:./' 45 FAIL canonicalize('http://////@google.com//') should be http://google.com//. Was http:////@google.com//. 46 PASS canonicalize('http://@google.com/') is 'http://google.com/' 31 47 PASS successfullyParsed is true 32 48 -
trunk/LayoutTests/fast/url/path-expected.txt
r77799 r84606 29 29 PASS canonicalize('http://example.com/foo%2©zbar') is 'http://example.com/foo%2%C3%82%C2%A9zbar' 30 30 FAIL canonicalize('http://example.com/foo%41%7a') should be http://example.com/fooAz. Was http://example.com/foo%41%7a. 31 FAIL canonicalize('http://example.com/foo %91') should be http://example.com/foo%09%C2%91%91. Was http://example.com/foo%C2%91%91. 31 PASS canonicalize('http://example.com/foo %91') is 'http://example.com/foo%C2%91%91' 32 32 FAIL canonicalize('http://example.com/foo%00%51') should be http://example.com/foo%00Q. Was http://example.com/foo%00%51. 33 33 PASS canonicalize('http://example.com/(%28:%3A%29)') is 'http://example.com/(%28:%3A%29)' 34 34 PASS canonicalize('http://example.com/%3A%3a%3C%3c') is 'http://example.com/%3A%3a%3C%3c' 35 FAIL canonicalize('http://example.com/foo bar') should be http://example.com/foo%09bar. Was http://example.com/foobar. 35 PASS canonicalize('http://example.com/foo bar') is 'http://example.com/foobar' 36 36 PASS canonicalize('http://example.com\\foo\\bar') is 'http://example.com/foo/bar' 37 37 PASS canonicalize('http://example.com/%7Ffp3%3Eju%3Dduvgw%3Dd') is 'http://example.com/%7Ffp3%3Eju%3Dduvgw%3Dd' … … 39 39 PASS canonicalize('http://example.com/你好你好') is 'http://example.com/%E4%BD%A0%E5%A5%BD%E4%BD%A0%E5%A5%BD' 40 40 FAIL canonicalize('http://example.com/zyx') should be http://example.com/%EF%BF%BDzyx. Was http://example.com/%EF%B7%90zyx. 41 PASS canonicalize('http://example.com/‥/foo') is 'http://example.com/%E2%80%A5/foo' 42 PASS canonicalize('http://example.com//foo') is 'http://example.com/%EF%BB%BF/foo' 43 PASS canonicalize('http://example.com//foo//bar') is 'http://example.com/%E2%80%AE/foo/%E2%80%AD/bar' 44 FAIL canonicalize('http://example.com/foo/') should be http://example.com%2Ffoo/. Was http://example.com/foo/. 41 45 PASS successfullyParsed is true 42 46 -
trunk/LayoutTests/fast/url/port-expected.txt
r78383 r84606 9 9 PASS canonicalize('http://www.example.com:8080/') is 'http://www.example.com:8080/' 10 10 PASS canonicalize('http://www.example.com:/') is 'http://www.example.com/' 11 FAIL canonicalize('http://www.example.com:፩/') should be http://www.example.com:%E1%8D%A9/. Was http://www.example.com:á©/. 12 FAIL canonicalize('http://www.example.com:𝟖/') should be http://www.example.com:%F0%9D%9F%96/. Was http://www.example.com:ð/. 11 13 PASS canonicalize('foobar://www.example.com:80/') is 'foobar://www.example.com:80/' 12 14 PASS successfullyParsed is true -
trunk/LayoutTests/fast/url/script-tests/host.js
r57711 r84606 60 60 // Cyrillic letter followed buy ( should return punicode for ( escaped before punicode string was created. I.e. 61 61 // if ( is escaped after punicode is created we would get xn--%28-8tb (incorrect). 62 ["\u0442(", "xn--%28-7ed"] 62 ["\u0442(", "xn--%28-7ed"], 63 ["go\\\\@ogle.com","go/@ogle.com"], 64 ["go/@ogle.com","go/@ogle.com"], 65 ["www.lookout.net::==80::==443::","www.lookout.net::%3D%3D80::%3D%3D443:"], 66 ["www.lookout.net::80::443","www.lookout.net::80::443"], 67 // From http://eaea.sirdarckcat.net/uritest.html 68 ["\\./","./"], 69 ["//:@/","/"], 70 ["\\google.com/foo","google.com/foo"], 71 ["\\\\google.com/foo","google.com/foo"], 72 ["//asdf@/","asdf@/"], 73 ["//:81",":81"], 74 ["://","//"], 75 ["c:","c"], 76 ["xxxx:","xxxx"], 77 [".:.",".:."], 78 ["////@google.com/","google.com/"], 79 ["@google.com","google.com"] 63 80 ]; 64 81 -
trunk/LayoutTests/fast/url/script-tests/path.js
r77799 r84606 44 44 ["/foo%41%7a", "/fooAz"], 45 45 // Funny characters that are unescaped should be escaped 46 ["/foo\u0009\u0091%91", "/foo% 09%C2%91%91"],46 ["/foo\u0009\u0091%91", "/foo%C2%91%91"], 47 47 // Invalid characters that are escaped should cause a failure. 48 48 ["/foo%00%51", "/foo%00Q"], … … 53 53 ["/%3A%3a%3C%3c", "/%3A%3a%3C%3c"], 54 54 // Funny characters that are unescaped should be escaped 55 ["/foo\tbar", "/foo %09bar"],55 ["/foo\tbar", "/foobar"], 56 56 // Backslashes should get converted to forward slashes 57 57 ["\\\\foo\\\\bar", "/foo/bar"], … … 72 72 // UTF-16 input, so this doesn't happen on 8-bit. 73 73 ["/\ufdd0zyx", "/%EF%BF%BDzyx"], 74 // U+2025 TWO DOT LEADER should not be normalized to .. in the path 75 ["/\u2025/foo", "/%E2%80%A5/foo"], 76 // A half-surrogate is an error by itself U+DEAD 77 // FIXME: ["/\uDEAD/foo", "/\uFFFD/foo"], 78 // BOM code point with special meaning U+FEFF ZERO WIDTH NO-BREAK SPACE 79 ["/\uFEFF/foo", "/%EF%BB%BF/foo"], 80 // The BIDI override code points RLO and LRO 81 ["/\u202E/foo/\u202D/bar", "/%E2%80%AE/foo/%E2%80%AD/bar"], 82 // U+FF0F FULLWIDTH SOLIDUS should normalize to / in a hostname 83 ["\uFF0Ffoo/", "%2Ffoo/"], 74 84 75 85 ]; -
trunk/LayoutTests/fast/url/script-tests/port.js
r78383 r84606 10 10 // Empty ports (just a colon) should also be removed 11 11 ["", ""], 12 // Code point with a numeric value U+1369 ETHIOPIC DIGIT ONE 13 ["\u1369", ":%E1%8D%A9"], 14 // Code point with a numerical mapping and value U+1D7D6 MATHEMATICAL BOLD DIGIT EIGHT 15 ["\uD835\uDFD6", ":%F0%9D%9F%96"], 12 16 ]; 13 17 -
trunk/LayoutTests/platform/chromium/fast/url/path-expected.txt
r84605 r84606 15 15 PASS canonicalize('http://example.com/foo/../../..') is 'http://example.com/' 16 16 PASS canonicalize('http://example.com/foo/../../../ton') is 'http://example.com/ton' 17 FAIL canonicalize('http://example.com/foo/%2e') should be http://example.com/foo/. Was http://example.com/foo/%2e. 18 FAIL canonicalize('http://example.com/foo/%2e%2') should be http://example.com/foo/.%2. Was http://example.com/foo/%2e%2. 19 FAIL canonicalize('http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar') should be http://example.com/..bar. Was http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar. 17 PASS canonicalize('http://example.com/foo/%2e') is 'http://example.com/foo/' 18 PASS canonicalize('http://example.com/foo/%2e%2') is 'http://example.com/foo/.%2' 19 PASS canonicalize('http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar') is 'http://example.com/..bar' 20 20 PASS canonicalize('http://example.com////../..') is 'http://example.com//' 21 21 PASS canonicalize('http://example.com/foo/bar//../..') is 'http://example.com/foo/' … … 28 28 PASS canonicalize('http://example.com/foo%2zbar') is 'http://example.com/foo%2zbar' 29 29 PASS canonicalize('http://example.com/foo%2©zbar') is 'http://example.com/foo%2%C3%82%C2%A9zbar' 30 FAIL canonicalize('http://example.com/foo%41%7a') should be http://example.com/fooAz. Was http://example.com/foo%41%7a. 31 FAIL canonicalize('http://example.com/foo %91') should be http://example.com/foo%09%C2%91%91. Was http://example.com/foo%C2%91%91. 32 FAIL canonicalize('http://example.com/foo%00%51') should be http://example.com/foo%00Q. Was http://example.com/foo%00%51. 30 PASS canonicalize('http://example.com/foo%41%7a') is 'http://example.com/fooAz' 31 PASS canonicalize('http://example.com/foo %91') is 'http://example.com/foo%C2%91%91' 32 PASS canonicalize('http://example.com/foo%00%51') is 'http://example.com/foo%00Q' 33 33 PASS canonicalize('http://example.com/(%28:%3A%29)') is 'http://example.com/(%28:%3A%29)' 34 34 PASS canonicalize('http://example.com/%3A%3a%3C%3c') is 'http://example.com/%3A%3a%3C%3c' 35 FAIL canonicalize('http://example.com/foo bar') should be http://example.com/foo%09bar. Was http://example.com/foobar. 35 PASS canonicalize('http://example.com/foo bar') is 'http://example.com/foobar' 36 36 PASS canonicalize('http://example.com\\foo\\bar') is 'http://example.com/foo/bar' 37 37 PASS canonicalize('http://example.com/%7Ffp3%3Eju%3Dduvgw%3Dd') is 'http://example.com/%7Ffp3%3Eju%3Dduvgw%3Dd' 38 38 PASS canonicalize('http://example.com/@asdf%40') is 'http://example.com/@asdf%40' 39 39 PASS canonicalize('http://example.com/你好你好') is 'http://example.com/%E4%BD%A0%E5%A5%BD%E4%BD%A0%E5%A5%BD' 40 FAIL canonicalize('http://example.com/zyx') should be http://example.com/%EF%BF%BDzyx. Was http://example.com/%EF%B7%90zyx. 40 PASS canonicalize('http://example.com/zyx') is 'http://example.com/%EF%BF%BDzyx' 41 PASS canonicalize('http://example.com/‥/foo') is 'http://example.com/%E2%80%A5/foo' 42 PASS canonicalize('http://example.com//foo') is 'http://example.com/%EF%BB%BF/foo' 43 PASS canonicalize('http://example.com//foo//bar') is 'http://example.com/%E2%80%AE/foo/%E2%80%AD/bar' 44 PASS canonicalize('http://example.com/foo/') is 'http://example.com%2Ffoo/' 41 45 PASS successfullyParsed is true 42 46 -
trunk/LayoutTests/platform/chromium/fast/url/port-expected.txt
r78401 r84606 9 9 PASS canonicalize('http://www.example.com:8080/') is 'http://www.example.com:8080/' 10 10 PASS canonicalize('http://www.example.com:/') is 'http://www.example.com/' 11 PASS canonicalize('http://www.example.com:፩/') is 'http://www.example.com:%E1%8D%A9/' 12 PASS canonicalize('http://www.example.com:𝟖/') is 'http://www.example.com:%F0%9D%9F%96/' 11 13 PASS canonicalize('foobar://www.example.com:80/') is 'foobar://www.example.com:80/' 12 14 PASS successfullyParsed is true
Note: See TracChangeset
for help on using the changeset viewer.