Changeset 53118 in webkit for trunk/JavaScriptCore/tests


Ignore:
Timestamp:
Jan 12, 2010, 12:16:40 AM (15 years ago)
Author:
[email protected]
Message:

2010-01-12 Adam Barth <[email protected]>

Reviewed by Eric Seidel.

ecma/Date/15.9.5.12-1.js fails every night at midnight
https://bugs.webkit.org/show_bug.cgi?id=28041

Change the test to use a concrete time instead of "now".

  • tests/mozilla/ecma/Date/15.9.5.10-1.js:
  • tests/mozilla/ecma/Date/15.9.5.12-1.js:
Location:
trunk/JavaScriptCore/tests/mozilla/ecma/Date
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-1.js

    r20121 r53118  
    6262    var DST_END_1998 = UTC( GetFirstSundayInNovember(TimeFromYear(1998)) + 2*msPerHour );
    6363
     64/*
     65    // We don't use |now| because it fails every night at midnight.
     66    // The test is more reproducable if we use concrete times.
    6467    addTestCase( now );
    65 /*
    6668    addTestCase( TIME_YEAR_0 );
    6769    addTestCase( TIME_1970 );
     
    6971    addTestCase( TIME_2000 );
    7072    addTestCase( UTC_FEB_29_2000 );
     73*/
    7174    addTestCase( UTC_JAN_1_2005 );
     75/*
    7276    addTestCase( DST_START_1998 );
    7377    addTestCase( DST_START_1998-1 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-1.js

    r11995 r53118  
    5757    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    5858
     59/*
     60    // We don't use |now| because it fails every night at midnight.
     61    // The test is more reproducable if we use concrete times.
    5962    addTestCase( now );
    60 /*
     63
    6164    addTestCase( TIME_YEAR_0 );
    6265    addTestCase( TIME_1970 );
     
    6467    addTestCase( TIME_2000 );
    6568    addTestCase( UTC_FEB_29_2000 );
     69*/
    6670    addTestCase( UTC_JAN_1_2005 );
     71/*
    6772
    6873    testcases[tc++] = new TestCase( SECTION,
Note: See TracChangeset for help on using the changeset viewer.