Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1285)

Unified Diff: mozilla-tests/ecma_3/Date/15.9.4.3.js

Issue 2865028: Update the mozilla tests to new version (as of 2010-06-29). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozilla-tests/ecma_3/Array/regress-488989.js ('k') | mozilla-tests/ecma_3/Date/regress-452786.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozilla-tests/ecma_3/Date/15.9.4.3.js
===================================================================
--- mozilla-tests/ecma_3/Date/15.9.4.3.js (revision 43940)
+++ mozilla-tests/ecma_3/Date/15.9.4.3.js (working copy)
@@ -187,24 +187,24 @@
//
- expect = 31;
- actual = (new Date(Date.UTC(2006, 0, -Infinity)).getUTCDate());
+ expect = true;
+ actual = isNaN(new Date(Date.UTC(2006, 0, -Infinity)).getUTCDate());
reportCompare(expect, actual, summary + ': date -Infinity');
- expect = 0;
- actual = (new Date(Date.UTC(2006, 0, 0, -Infinity)).getUTCHours());
+ expect = true;
+ actual = isNaN(new Date(Date.UTC(2006, 0, 0, -Infinity)).getUTCHours());
reportCompare(expect, actual, summary + ': hours -Infinity');
- expect = 0;
- actual = (new Date(Date.UTC(2006, 0, 0, 0, -Infinity)).getUTCMinutes());
+ expect = true;
+ actual = isNaN(new Date(Date.UTC(2006, 0, 0, 0, -Infinity)).getUTCMinutes());
reportCompare(expect, actual, summary + ': minutes -Infinity');
- expect = 0;
- actual = (new Date(Date.UTC(2006, 0, 0, 0, 0, -Infinity)).getUTCSeconds());
+ expect = true;
+ actual = isNaN(new Date(Date.UTC(2006, 0, 0, 0, 0, -Infinity)).getUTCSeconds());
reportCompare(expect, actual, summary + ': seconds -Infinity');
- expect = 0;
- actual = (new Date(Date.UTC(2006, 0, 0, 0, 0, 0, -Infinity)).getUTCMilliseconds());
+ expect = true;
+ actual = isNaN(new Date(Date.UTC(2006, 0, 0, 0, 0, 0, -Infinity)).getUTCMilliseconds());
reportCompare(expect, actual, summary + ': milliseconds -Infinity');
//
« no previous file with comments | « mozilla-tests/ecma_3/Array/regress-488989.js ('k') | mozilla-tests/ecma_3/Date/regress-452786.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698