Changeset 57634 in webkit
- Timestamp:
- Apr 15, 2010 12:55:07 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r57633 r57634 1 2010-04-15 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Darin Fisher. 4 5 Add comments back to IPv4 URL parsing test 6 https://bugs.webkit.org/show_bug.cgi?id=37620 7 8 I removed these comments when importing this test. The comments are 9 likley to be helpful to us in the future, so I've restored them. 10 11 * fast/url/script-tests/ipv4.js: 12 1 13 2010-04-14 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/LayoutTests/fast/url/script-tests/ipv4.js
r57503 r57634 3 3 cases = [ 4 4 [".", ""], 5 6 // Regular IP addresses in different bases. 5 7 ["192.168.0.1", "192.168.0.1"], 6 8 ["0300.0250.00.01", "192.168.0.1"], 7 9 ["0xC0.0Xa8.0x0.0x1", "192.168.0.1"], 10 11 // Non-IP addresses due to invalid characters. 8 12 ["192.168.9.com", ""], 13 14 // Invalid characters for the base should be rejected. 9 15 ["19a.168.0.1", ""], 10 16 ["0308.0250.00.01", ""], 11 17 ["0xCG.0xA8.0x0.0x1", ""], 18 19 // If there are not enough components, the last one should fill them out. 12 20 ["192", "0.0.0.192"], 13 21 ["0xC0a80001", "192.168.0.1"], … … 18 26 ["0xc0.052000001", "192.168.0.1"], 19 27 ["192.168.1", "192.168.0.1"], 28 29 // Too many components means not an IP address. 20 30 ["192.168.0.0.1", ""], 31 32 // We allow a single trailing dot. 21 33 ["192.168.0.1.", "192.168.0.1"], 22 34 ["192.168.0.1. hello", ""], 23 35 ["192.168.0.1..", ""], 36 37 // Two dots in a row means not an IP address. 24 38 ["192.168..1", ""], 39 40 // Any numerical overflow should be marked as BROKEN. 25 41 ["0x100.0", ""], 26 42 ["0x100.0.0", ""], … … 32 48 ["0.0x1000000", ""], 33 49 ["0x100000000", ""], 50 51 // Repeat the previous tests, minus 1, to verify boundaries. 34 52 ["0xFF.0", "255.0.0.0"], 35 53 ["0xFF.0.0", "255.0.0.0"], … … 41 59 ["0.0xFFFFFF", "0.255.255.255"], 42 60 ["0xFFFFFFFF", "255.255.255.255"], 61 62 // Old trunctations tests. They're all "BROKEN" now. 43 63 ["276.256.0xf1a2.077777", ""], 44 64 ["192.168.0.257", ""], … … 47 67 ["0X12C0a80001", ""], 48 68 ["276.1.2", ""], 69 70 // Spaces should be rejected. 49 71 ["192.168.0.1 hello", ""], 72 73 // Very large numbers. 50 74 ["0000000000000300.0x00000000000000fF.00000000000000001", "192.255.0.1"], 51 75 ["0000000000000300.0xffffffffFFFFFFFF.3022415481470977", ""], 76 77 // A number has no length limit, but long numbers can still overflow. 52 78 ["00000000000000000001", "0.0.0.1"], 53 79 ["0000000000000000100000000000000001", ""], 80 81 // If a long component is non-numeric, it's a hostname, *not* a broken IP. 54 82 ["0.0.0.000000000000000000z", ""], 55 83 ["0.0.0.100000000000000000z", ""], 84 85 // Truncation of all zeros should still result in 0. 56 86 ["0.00.0x.0x0", "0.0.0.0"] 57 87 ];
Note: See TracChangeset
for help on using the changeset viewer.