Changeset 89281 in webkit
- Timestamp:
- Jun 20, 2011 12:46:23 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r89273 r89281 1 2011-06-20 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Darin Adler. 4 5 REGRESSION (r79060): Searching for a flight at united.com fails 6 https://bugs.webkit.org/show_bug.cgi?id=63003 7 8 Roll out tests that were added by the patch we're rolling out, and add 9 a test for the united.com Date. 10 11 * fast/js/date-parse-test-expected.txt: 12 * fast/js/script-tests/date-parse-test.js: 13 1 14 2011-06-20 Alex Milowski <alex@milowski.com> 2 15 -
trunk/LayoutTests/fast/js/date-parse-test-expected.txt
r80542 r89281 162 162 PASS Date.parse("WED DEC 25 1995 1:30 GMT") == 819855000000 is true 163 163 PASS Date.parse("wed dec 25 1995 1:30 gmt") == 819855000000 is true 164 PASS Date.parse("Wed Dec 25 1:30 1995 GMT") == 819855000000 is true165 PASS Date.parse("WED DEC 25 1:30 1995 GMT") == 819855000000 is true166 PASS Date.parse("wed dec 25 1:30 1995 gmt") == 819855000000 is true167 PASS Date.parse("Wed Dec 25 1:30 1995GMT") == 819855000000 is true168 PASS Date.parse("Wed Dec 25 1:30 1995 2010 GMT") is NaN169 PASS Date.parse("Wed Dec 25 1:30 1995r GMT") is NaN170 PASS Date.parse("Wed 1:30 Dec 25 GMT") is NaN171 164 PASS Date.parse("Wed Dec 25 1995 01:30 +0000") == 819855000000 is true 172 165 PASS Date.parse("WED DEC 25 1995 01:30 +0000") == 819855000000 is true … … 210 203 PASS Date.parse("DEC 25,1995,13:30") == 819898200000 + timeZoneOffset is true 211 204 PASS Date.parse("dec 25,1995,13:30") == 819898200000 + timeZoneOffset is true 205 PASS Date.parse("Mon Jun 20 11:00:00 CDT 2011") == 1308585600000 is true 206 PASS Date.parse("MON JUN 20 11:00:00 CDT 2011") == 1308585600000 is true 207 PASS Date.parse("mon jun 20 11:00:00 cdt 2011") == 1308585600000 is true 212 208 PASS successfullyParsed is true 213 209 -
trunk/LayoutTests/fast/js/script-tests/date-parse-test.js
r80542 r89281 128 128 129 129 testDateParse("Wed Dec 25 1995 1:30 GMT", "819855000000"); 130 testDateParse("Wed Dec 25 1:30 1995 GMT", "819855000000");131 testDateParseExact("Wed Dec 25 1:30 1995GMT", "819855000000");132 testDateParseExact("Wed Dec 25 1:30 1995 2010 GMT", "NaN");133 testDateParseExact("Wed Dec 25 1:30 1995r GMT", "NaN");134 testDateParseExact("Wed 1:30 Dec 25 GMT", "NaN");135 130 136 131 // RFC 2822 … … 157 152 testDateParse("Dec 25,1995,13:30", "819898200000 + timeZoneOffset"); 158 153 159 154 testDateParse("Mon Jun 20 11:00:00 CDT 2011", "1308585600000"); 160 155 161 156 var successfullyParsed = true; -
trunk/Source/JavaScriptCore/ChangeLog
r89257 r89281 1 2011-06-20 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Darin Adler. 4 5 REGRESSION (r79060): Searching for a flight at united.com fails 6 https://bugs.webkit.org/show_bug.cgi?id=63003 7 8 This original change also broke Twitter, and we attempted to refine the fix to 9 address that problem (http://trac.webkit.org/changeset/80542), but since it still breaks United, 10 we need to revert the change until we understand the problem better. 11 12 * wtf/DateMath.cpp: 13 (WTF::parseDateFromNullTerminatedCharacters): 14 1 15 2011-06-20 Juan C. Montemayor <jmont@apple.com> 2 16 -
trunk/Source/JavaScriptCore/wtf/DateMath.cpp
r88605 r89281 933 933 } 934 934 } 935 936 // The year may be after the time but before the time zone, but don't937 // confuse a time zone specificed as an offset from UTC (e.g. +0100) with a938 // four-digit year.939 if (year <= 0 && *dateString != '+' && *dateString != '-') {940 if (!parseLong(dateString, &newPosStr, 10, &year))941 year = 0;942 dateString = newPosStr;943 skipSpacesAndComments(dateString);944 }945 935 946 936 // Don't fail if the time zone is missing.
Note: See TracChangeset
for help on using the changeset viewer.