Bug 513115 - EMCA5: test failures in ecma_5/Date/15.9.4.2.js. r=dmandelin.
authorJason Orendorff <jorendorff@mozilla.com>
Thu, 03 Sep 2009 15:52:03 -0500
changeset 32145 1e0da996def446c1d6c6b311ea07b7dfb7dcf955
parent 32144 daa55ef69fd7295c34ee69034d281848c468b0ce
child 32146 f3fa75bd069b1247024beeb5b9dce2f5d0519de5
push id300
push userrsayre@mozilla.com
push dateFri, 02 Oct 2009 00:50:43 +0000
reviewersdmandelin
bugs513115
milestone1.9.2b1pre
Bug 513115 - EMCA5: test failures in ecma_5/Date/15.9.4.2.js. r=dmandelin.
js/tests/ecma_5/Date/15.9.4.2.js
--- a/js/tests/ecma_5/Date/15.9.4.2.js
+++ b/js/tests/ecma_5/Date/15.9.4.2.js
@@ -101,19 +101,19 @@ function test()
   check("2009-07T19:53:21.001",          dd(2009,7,1,19,53,21,1)+JulTZ);
   check("2009-07T19:53:21",              dd(2009,7,1,19,53,21,0)+JulTZ);
   check("2009-07T19:53",                 dd(2009,7,1,19,53,0,0)+JulTZ);
 
   check("2009T19:53:21.001",             dd(2009,1,1,19,53,21,1)+JanTZ);
   check("2009T19:53:21",                 dd(2009,1,1,19,53,21,0)+JanTZ);
   check("2009T19:53",                    dd(2009,1,1,19,53,0,0)+JanTZ);
 
-  check("T19:53:21.001",                 dd(1970,1,1,19,53,21,1)+CurrTZ);
-  check("T19:53:21",                     dd(1970,1,1,19,53,21,0)+CurrTZ);
-  check("T19:53",                        dd(1970,1,1,19,53,0,0)+CurrTZ);
+  check("T19:53:21.001",                 dd(1970,1,1,19,53,21,1)+JanTZ);
+  check("T19:53:21",                     dd(1970,1,1,19,53,21,0)+JanTZ);
+  check("T19:53",                        dd(1970,1,1,19,53,0,0)+JanTZ);
 
   // with no time at all assume UTC
   check("2009-07-23",                    dd(2009,7,23,0,0,0,0));
   check("2009-07",                       dd(2009,7,1,0,0,0,0));
   check("2009",                          dd(2009,1,1,0,0,0,0));
   check("",                              NaN);
 
   // one field too big