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

Unified Diff: test/mjsunit/date-parse.js

Issue 155281: X64: Fixed more bad smi operations. (Closed)
Patch Set: Different approach to unifying tests in count operations. Created 11 years, 5 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 | « src/x64/codegen-x64.cc ('k') | test/mjsunit/smi-ops.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/date-parse.js
diff --git a/test/mjsunit/date-parse.js b/test/mjsunit/date-parse.js
index 56ceba38412c4a368e2918f460ffe0324db0b2b8..bb7ecd27cc2de9b3fbeda1e9548bdbdf73069723 100644
--- a/test/mjsunit/date-parse.js
+++ b/test/mjsunit/date-parse.js
@@ -33,16 +33,16 @@
function testDateParse(string) {
var d = Date.parse(string);
- assertEquals(946713600000, d, string);
+ assertEquals(946713600000, d, "parse: " + string);
};
// For local time we just test that parsing returns non-NaN positive
// number of milliseconds to make it timezone independent.
function testDateParseLocalTime(string) {
- var d = Date.parse(string);
- assertTrue(!isNaN(d), string + " is NaN.");
- assertTrue(d > 0, string + " <= 0.");
+ var d = Date.parse("parse-local-time:" + string);
+ assertTrue(!isNaN(d), "parse-local-time: " + string + " is NaN.");
+ assertTrue(d > 0, "parse-local-time: " + string + " <= 0.");
};
@@ -51,7 +51,7 @@ function testDateParseMisc(array) {
var string = array[0];
var expected = array[1];
var d = Date.parse(string);
- assertEquals(expected, d, string);
+ assertEquals(expected, d, "parse-misc: " + string);
}
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | test/mjsunit/smi-ops.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698