Changeset 10088 in webkit for trunk/JavaScriptCore/tests


Ignore:
Timestamp:
Aug 8, 2005, 9:39:57 AM (20 years ago)
Author:
darin
Message:

Reviewed by John Sullivan.

  • tests/mozilla/ecma/shell.js: Added TIME_YEAR_0 constant.
  • tests/mozilla/ecma/Date/15.9.5.10-1.js: Removed the loop and changed code to use the constant.
  • tests/mozilla/ecma/Date/15.9.5.10-10.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-11.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-12.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-13.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-2.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-3.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-4.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-5.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-6.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-7.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-8.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.10-9.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.11-2.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-1.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-2.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-3.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-4.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-5.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-6.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-7.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.12-8.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.13-2.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.13-8.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.14.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.15.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.16.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.17.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.18.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.19.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.20.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-1.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-2.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-3.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-4.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-5.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-6.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-7.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.21-8.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-1.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-2.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-3.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-4.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-5.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-6.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-7.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.22-8.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.23-4.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.23-5.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.23-6.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.23-7.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.23-8.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.23-9.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.5.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.6.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.7.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.8.js: Ditto.
  • tests/mozilla/ecma/Date/15.9.5.9.js: Ditto.
Location:
trunk/JavaScriptCore/tests/mozilla/ecma
Files:
59 edited

Legend:

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

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6864    addTestCase( now );
    6965/*
    70     addTestCase( time );
     66    addTestCase( TIME_YEAR_0 );
    7167    addTestCase( TIME_1970 );
    7268    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-10.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-11.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-12.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-13.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-2.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6662    var DST_END_1998 = UTC( GetLastSundayInOctober(TimeFromYear(1998)) + 2*msPerHour );
    6763
    68     addTestCase( time );
     64    addTestCase( TIME_YEAR_0 );
    6965/*
    7066    addTestCase( TIME_1970 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-3.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-4.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-5.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-6.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-7.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-8.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-9.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.11-2.js

    r5172 r10088  
    4444    var TZ_ADJUST = TZ_DIFF * msPerHour;
    4545
    46     // calculate time for year 0
    47     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    48         time -= TimeInYear(year);
    49     }
    5046
    51     addTestCase( time );
     47    addTestCase( TIME_YEAR_0 );
    5248
    5349    test();
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-1.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
     
    6359    addTestCase( now );
    6460/*
    65     addTestCase( time );
     61    addTestCase( TIME_YEAR_0 );
    6662    addTestCase( TIME_1970 );
    6763    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-2.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
     
    6157    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6258
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460/*
    6561    addTestCase( TIME_1970 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-3.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-4.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-5.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-6.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-7.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-8.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.13-2.js

    r5172 r10088  
    4444    var TZ_ADJUST = TZ_DIFF * msPerHour;
    4545
    46     // calculate time for year 0
    47     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    48         time -= TimeInYear(year);
    49     }
    5046
    51     addTestCase( time );
     47    addTestCase( TIME_YEAR_0 );
    5248    test();
    5349function addTestCase( t ) {
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.13-8.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.14.js

    r5172 r10088  
    4646    var now = (new Date()).valueOf();
    4747
    48     // calculate time for year 0
    49     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    50         time -= TimeInYear(year);
    51     }
    5248    // get time for 29 feb 2000
    5349
     
    6056
    6157    addTestCase( now );
    62     addTestCase( time );
     58    addTestCase( TIME_YEAR_0 );
    6359    addTestCase( TIME_1970 );
    6460    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.15.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6157
    6258    addTestCase( now );
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460    addTestCase( TIME_1970 );
    6561    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.16.js

    r5172 r10088  
    4646    var now = (new Date()).valueOf();
    4747
    48     // calculate time for year 0
    49     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    50         time -= TimeInYear(year);
    51     }
    5248    // get time for 29 feb 2000
    5349
     
    6056
    6157    addTestCase( now );
    62     addTestCase( time );
     58    addTestCase( TIME_YEAR_0 );
    6359    addTestCase( TIME_1970 );
    6460    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.17.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6157
    6258    addTestCase( now );
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460    addTestCase( TIME_1970 );
    6561    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.18.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6157
    6258    addTestCase( now );
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460    addTestCase( TIME_1970 );
    6561    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.19.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6157
    6258    addTestCase( now );
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460    addTestCase( TIME_1970 );
    6561    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.20.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6157
    6258    addTestCase( now );
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460    addTestCase( TIME_1970 );
    6561    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-1.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6258    addTestCase( now );
    6359/*
    64     addTestCase( time );
     60    addTestCase( TIME_YEAR_0 );
    6561
    6662    addTestCase( TIME_1970 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-2.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6056    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6157
    62     addTestCase( time );
     58    addTestCase( TIME_YEAR_0 );
    6359/*
    6460    addTestCase( TIME_1970 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-3.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-4.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-5.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-6.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-7.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.21-8.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-1.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
     
    6359//    addTestCase( now );
    6460
    65     addTestCase( time );
     61    addTestCase( TIME_YEAR_0 );
    6662    addTestCase( TIME_1970 );
    6763    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-2.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
     
    6157    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6258
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460/*
    6561    addTestCase( TIME_1970 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-3.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-4.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-5.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-6.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-7.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.22-8.js

    r5172 r10088  
    4848    var now = (new Date()).valueOf();
    4949
    50     // calculate time for year 0
    51     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    52         time -= TimeInYear(year);
    53     }
    5450    // get time for 29 feb 2000
    5551
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.23-4.js

    r5172 r10088  
    4949    var now = (new Date()).valueOf();
    5050
    51     // calculate time for year 0
    52     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    53         time -= TimeInYear(year);
    54     }
    5551    // get time for 29 feb 2000
    5652
     
    6258    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6359
    64     test_times = new Array( now, time, TIME_1970, TIME_1900, TIME_2000,
     60    test_times = new Array( now, TIME_YEAR_0, TIME_1970, TIME_1900, TIME_2000,
    6561    UTC_FEB_29_2000, UTC_JAN_1_2005 );
    6662
    6763
    6864    for ( var j = 0; j < test_times.length; j++ ) {
    69         addTestCase( new Date(time), test_times[j] );
     65        addTestCase( new Date(TIME_YEAR_0), test_times[j] );
    7066    }
    7167
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.23-5.js

    r5172 r10088  
    4949    var now = (new Date()).valueOf();
    5050
    51     // calculate time for year 0
    52     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    53         time -= TimeInYear(year);
    54     }
    5551    // get time for 29 feb 2000
    5652
     
    6258    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6359
    64     test_times = new Array( now, time, TIME_1970, TIME_1900, TIME_2000,
     60    test_times = new Array( now, TIME_YEAR_0, TIME_1970, TIME_1900, TIME_2000,
    6561    UTC_FEB_29_2000, UTC_JAN_1_2005 );
    6662
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.23-6.js

    r5172 r10088  
    4949    var now = (new Date()).valueOf();
    5050
    51     // calculate time for year 0
    52     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    53         time -= TimeInYear(year);
    54     }
    5551    // get time for 29 feb 2000
    5652
     
    6258    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6359
    64     test_times = new Array( now, time, TIME_1970, TIME_1900, TIME_2000,
     60    test_times = new Array( now, TIME_YEAR_0, TIME_1970, TIME_1900, TIME_2000,
    6561    UTC_FEB_29_2000, UTC_JAN_1_2005 );
    6662
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.23-7.js

    r5172 r10088  
    4949    var now = (new Date()).valueOf();
    5050
    51     // calculate time for year 0
    52     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    53         time -= TimeInYear(year);
    54     }
    5551    // get time for 29 feb 2000
    5652
     
    6258    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6359
    64     test_times = new Array( now, time, TIME_1970, TIME_1900, TIME_2000,
     60    test_times = new Array( now, TIME_YEAR_0, TIME_1970, TIME_1900, TIME_2000,
    6561    UTC_FEB_29_2000, UTC_JAN_1_2005 );
    6662
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.23-8.js

    r5172 r10088  
    4949    var now = (new Date()).valueOf();
    5050
    51     // calculate time for year 0
    52     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    53         time -= TimeInYear(year);
    54     }
    5551    // get time for 29 feb 2000
    5652
     
    6157    var UTC_JAN_1_2005 = TIME_2000 + TimeInYear(2000)+TimeInYear(2001)+
    6258    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    63     test_times = new Array( now, time, TIME_1970, TIME_1900, TIME_2000,
     59    test_times = new Array( now, TIME_YEAR_0, TIME_1970, TIME_1900, TIME_2000,
    6460    UTC_FEB_29_2000, UTC_JAN_1_2005 );
    6561
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.23-9.js

    r5172 r10088  
    4949    var now = (new Date()).valueOf();
    5050
    51     // calculate time for year 0
    52     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    53         time -= TimeInYear(year);
    54     }
    5551    // get time for 29 feb 2000
    5652
     
    6258    TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
    6359
    64     test_times = new Array( now, time, TIME_1970, TIME_1900, TIME_2000,
     60    test_times = new Array( now, TIME_YEAR_0, TIME_1970, TIME_1900, TIME_2000,
    6561    UTC_FEB_29_2000, UTC_JAN_1_2005 );
    6662
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.5.js

    r5172 r10088  
    5151    var now = (new Date()).valueOf();
    5252
    53     // calculate time for year 0
    54     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    55         time -= TimeInYear(year);
    56     }
    5753    // get time for 29 feb 2000
    5854
     
    6056
    6157    addTestCase( now );
    62     addTestCase( time );
     58    addTestCase( TIME_YEAR_0 );
    6359    addTestCase( TIME_1970 );
    6460    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.6.js

    r5172 r10088  
    4646    var now = (new Date()).valueOf();
    4747
    48     // calculate time for year 0
    49     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    50         time -= TimeInYear(year);
    51     }
    5248    // get time for 29 feb 2000
    5349
     
    6056
    6157    addTestCase( now );
    62     addTestCase( time );
     58    addTestCase( TIME_YEAR_0 );
    6359    addTestCase( TIME_1970 );
    6460    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.7.js

    r5172 r10088  
    4646    var now = (new Date()).valueOf();
    4747
    48     // calculate time for year 0
    49     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    50         time -= TimeInYear(year);
    51     }
    5248    // get time for 29 feb 2000
    5349
     
    6056
    6157    addTestCase( now );
    62     addTestCase( time );
     58    addTestCase( TIME_YEAR_0 );
    6359    addTestCase( TIME_1970 );
    6460    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.8.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6157
    6258    addTestCase( now );
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460    addTestCase( TIME_1970 );
    6561    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.9.js

    r5172 r10088  
    4747    var now = (new Date()).valueOf();
    4848
    49     // calculate time for year 0
    50     for ( var time = 0, year = 1969; year >= 0; year-- ) {
    51         time -= TimeInYear(year);
    52     }
    5349    // get time for 29 feb 2000
    5450
     
    6157
    6258    addTestCase( now );
    63     addTestCase( time );
     59    addTestCase( TIME_YEAR_0 );
    6460    addTestCase( TIME_1970 );
    6561    addTestCase( TIME_1900 );
  • trunk/JavaScriptCore/tests/mozilla/ecma/shell.js

    r5172 r10088  
    230230var     TIME_2000        = 946684800000;
    231231var     TIME_1900        = -2208988800000;
     232var     TIME_YEAR_0      = -62167219200000;
    232233
    233234
Note: See TracChangeset for help on using the changeset viewer.