[webkit-changes] cvs commit: LayoutTests/fast/js
date-big-setmonth-expected.txt date-big-setmonth.html
Darin
darin at opensource.apple.com
Sat Oct 8 20:37:09 PDT 2005
darin 05/10/08 20:37:08
Modified: . ChangeLog
fast/js date-big-setmonth-expected.txt
date-big-setmonth.html
Log:
Reviewed by Geoff Garen.
- fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5061
date-big-setmonth test is not timezone-independent
* fast/js/date-big-setmonth.html: Changed to compare expected result with a Date value rather
than with a constant. Also write out final result as a date rather than as a constant.
* fast/js/date-big-setmonth-expected.txt: Updated.
Revision Changes Path
1.23 +11 -0 LayoutTests/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/LayoutTests/ChangeLog,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- ChangeLog 9 Oct 2005 03:31:11 -0000 1.22
+++ ChangeLog 9 Oct 2005 03:37:07 -0000 1.23
@@ -1,3 +1,14 @@
+2005-10-08 Mitz Pettel <opendarwin.org at mitzpettel.com>
+
+ Reviewed by Geoff Garen.
+
+ - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5061
+ date-big-setmonth test is not timezone-independent
+
+ * fast/js/date-big-setmonth.html: Changed to compare expected result with a Date value rather
+ than with a constant. Also write out final result as a date rather than as a constant.
+ * fast/js/date-big-setmonth-expected.txt: Updated.
+
2005-10-08 Alexey Proskuryakov <ap at nypop.com>
- Added a test for http://bugzilla.opendarwin.org/show_bug.cgi?id=4821
1.2 +1 -1 LayoutTests/fast/js/date-big-setmonth-expected.txt
Index: date-big-setmonth-expected.txt
===================================================================
RCS file: /cvs/root/LayoutTests/fast/js/date-big-setmonth-expected.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- date-big-setmonth-expected.txt 7 Sep 2005 23:27:41 -0000 1.1
+++ date-big-setmonth-expected.txt 9 Oct 2005 03:37:08 -0000 1.2
@@ -2,4 +2,4 @@
If the test passes, you will see a "PASSED" message below.
-PASSED: date value is 307666800000
+PASSED: date is Mon Sep 01 1980
1.2 +3 -3 LayoutTests/fast/js/date-big-setmonth.html
Index: date-big-setmonth.html
===================================================================
RCS file: /cvs/root/LayoutTests/fast/js/date-big-setmonth.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- date-big-setmonth.html 7 Sep 2005 23:27:41 -0000 1.1
+++ date-big-setmonth.html 9 Oct 2005 03:37:08 -0000 1.2
@@ -12,13 +12,13 @@
layoutTestController.dumpAsText();
}
- var d = new Date(0);
+ var d = new Date(1970, 0, 1);
var status = "FAILED: ";
d.setMonth(128);
- if (d.valueOf() == 307666800000) {
+ if (d.valueOf() == new Date(1980, 8, 1).valueOf()) {
status = "PASSED: ";
}
- print(status + "date value is " + d.valueOf());
+ print(status + "date is " + d.toDateString());
}
</script>
</head>
More information about the webkit-changes
mailing list