OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 ['2000-01-01T08:00:00Z', 946713600000], | 238 ['2000-01-01T08:00:00Z', 946713600000], |
239 ['2000-01-01T08:00Z', 946713600000], | 239 ['2000-01-01T08:00Z', 946713600000], |
240 ['2000-01T08:00:00.000Z', 946713600000], | 240 ['2000-01T08:00:00.000Z', 946713600000], |
241 ['2000T08:00:00.000Z', 946713600000], | 241 ['2000T08:00:00.000Z', 946713600000], |
242 ['2000T08:00Z', 946713600000], | 242 ['2000T08:00Z', 946713600000], |
243 ['2000-01T00:00:00.000-08:00', 946713600000], | 243 ['2000-01T00:00:00.000-08:00', 946713600000], |
244 ['2000-01T08:00:00.001Z', 946713600001], | 244 ['2000-01T08:00:00.001Z', 946713600001], |
245 ['2000-01T08:00:00.099Z', 946713600099], | 245 ['2000-01T08:00:00.099Z', 946713600099], |
246 ['2000-01T08:00:00.999Z', 946713600999], | 246 ['2000-01T08:00:00.999Z', 946713600999], |
247 ['2000-01T00:00:00.001-08:00', 946713600001], | 247 ['2000-01T00:00:00.001-08:00', 946713600001], |
248 ['2000-01-01T24:00Z', 946771200000], | 248 ['2000-01-01T24:00', 946771200000], |
249 ['2000-01-01T24:00:00Z', 946771200000], | 249 ['2000-01-01T24:00:00', 946771200000], |
250 ['2000-01-01T24:00:00.000Z', 946771200000], | 250 ['2000-01-01T24:00:00.000', 946771200000], |
251 ['2000-01-01T24:00:00.000Z', 946771200000]]; | 251 ['2000-01-01T24:00:00.000Z', 946771200000]]; |
252 | 252 |
253 var testCasesES5MiscNegative = [ | 253 var testCasesES5MiscNegative = [ |
254 '2000-01-01TZ', | 254 '2000-01-01TZ', |
255 '2000-01-01T60Z', | 255 '2000-01-01T60Z', |
256 '2000-01-01T60:60Z', | 256 '2000-01-01T60:60Z', |
257 '2000-01-0108:00Z', | 257 '2000-01-0108:00Z', |
258 '2000-01-01T08Z', | 258 '2000-01-01T08Z', |
259 '2000-01-01T24:01', | 259 '2000-01-01T24:01', |
260 '2000-01-01T24:00:01', | 260 '2000-01-01T24:00:01', |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 'May 25 2008 1:30 (PM)) UTC', // Bad unmatched ')' after number. | 296 'May 25 2008 1:30 (PM)) UTC', // Bad unmatched ')' after number. |
297 'May 25 2008 1:30( )AM (PM)', // | 297 'May 25 2008 1:30( )AM (PM)', // |
298 'a1', // Issue 126448, 53209. | 298 'a1', // Issue 126448, 53209. |
299 'nasfdjklsfjoaifg1', | 299 'nasfdjklsfjoaifg1', |
300 'x_2', | 300 'x_2', |
301 'May 25 2008 AAA (GMT)']; // Unknown word after number. | 301 'May 25 2008 AAA (GMT)']; // Unknown word after number. |
302 | 302 |
303 testCasesNegative.forEach(function (s) { | 303 testCasesNegative.forEach(function (s) { |
304 assertTrue(isNaN(Date.parse(s)), s + " is not NaN."); | 304 assertTrue(isNaN(Date.parse(s)), s + " is not NaN."); |
305 }); | 305 }); |
OLD | NEW |