]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - tests/mozilla/ecma/Date/15.9.5.12-1.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / mozilla / ecma / Date / 15.9.5.12-1.js
index 437a8093228f3c002f8064eea045543c6ff36831..8dcf1a4e55e748af89ef59f6c240618dcc233277 100644 (file)
     var UTC_JAN_1_2005 = TIME_2000 + TimeInYear(2000)+TimeInYear(2001)+
     TimeInYear(2002)+TimeInYear(2003)+TimeInYear(2004);
 
-    addTestCase( now );
 /*
+    // We don't use |now| because it fails every night at midnight.
+    // The test is more reproducable if we use concrete times.
+    addTestCase( now );
+
     addTestCase( TIME_YEAR_0 );
     addTestCase( TIME_1970 );
     addTestCase( TIME_1900 );
     addTestCase( TIME_2000 );
     addTestCase( UTC_FEB_29_2000 );
+*/
     addTestCase( UTC_JAN_1_2005 );
+/*
 
     testcases[tc++] = new TestCase( SECTION,
                                     "(new Date(NaN)).getDay()",