diff options
Diffstat (limited to 'JavaScriptCore/tests')
4 files changed, 20 insertions, 4 deletions
diff --git a/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-1.js b/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-1.js index f887725..f13e9d7 100644 --- a/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-1.js +++ b/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.10-1.js @@ -61,14 +61,18 @@ var DST_END_1998 = UTC( GetFirstSundayInNovember(TimeFromYear(1998)) + 2*msPerHour ); - 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 ); +/* addTestCase( DST_START_1998 ); addTestCase( DST_START_1998-1 ); addTestCase( DST_START_1998+1 ); diff --git a/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-1.js b/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-1.js index 437a809..8dcf1a4 100644 --- a/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-1.js +++ b/JavaScriptCore/tests/mozilla/ecma/Date/15.9.5.12-1.js @@ -56,14 +56,19 @@ 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()", diff --git a/JavaScriptCore/tests/mozilla/ecma_2/RegExp/properties-001.js b/JavaScriptCore/tests/mozilla/ecma_2/RegExp/properties-001.js index 16f265c..3eb51cb 100644 --- a/JavaScriptCore/tests/mozilla/ecma_2/RegExp/properties-001.js +++ b/JavaScriptCore/tests/mozilla/ecma_2/RegExp/properties-001.js @@ -56,8 +56,15 @@ function AddRegExpCases( re, s, g, i, m, l ) { s, re.source ); +/* + * http://bugzilla.mozilla.org/show_bug.cgi?id=225550 changed + * the behavior of toString() and toSource() on empty regexps. + * So branch if |s| is the empty string - + */ + var S = s? s : '(?:)'; + AddTestCase( re + ".toString()", - "/" + s +"/" + (g?"g":"") + (i?"i":"") +(m?"m":""), + "/" + S +"/" + (g?"g":"") + (i?"i":"") +(m?"m":""), re.toString() ); AddTestCase( re + ".global", diff --git a/JavaScriptCore/tests/mozilla/js1_2/regexp/toString.js b/JavaScriptCore/tests/mozilla/js1_2/regexp/toString.js index 554b934..b08b772 100644 --- a/JavaScriptCore/tests/mozilla/js1_2/regexp/toString.js +++ b/JavaScriptCore/tests/mozilla/js1_2/regexp/toString.js @@ -41,7 +41,7 @@ // var re = new RegExp(); re.toString() var re = new RegExp(); testcases[count++] = new TestCase ( SECTION, "var re = new RegExp(); re.toString()", - '//', re.toString()); + '/(?:)/', re.toString()); // re = /.+/; re.toString(); re = /.+/; |