[webkit-changes] cvs commit: WebCore/layout-tests/fast/js
date-big-setmonth-expected.txt date-big-setmonth.html
Geoffrey
ggaren at opensource.apple.com
Wed Sep 7 16:27:41 PDT 2005
ggaren 05/09/07 16:27:41
Modified: . ChangeLog
Added: layout-tests/fast/js date-big-setmonth-expected.txt
date-big-setmonth.html
Log:
-added layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=4781
Date.setMonth fails with big values due to overflow
Fix is in JavaScriptCore.
Test cases added:
* layout-tests/fast/js/date-big-setmonth-expected.txt: Added.
* layout-tests/fast/js/date-big-setmonth.html: Added.
Revision Changes Path
1.102 +12 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -r1.101 -r1.102
--- ChangeLog 7 Sep 2005 18:10:36 -0000 1.101
+++ ChangeLog 7 Sep 2005 23:27:40 -0000 1.102
@@ -1,3 +1,15 @@
+2005-09-07 Geoffrey Garen <ggaren at apple.com>
+
+ -added layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=4781
+ Date.setMonth fails with big values due to overflow
+
+ Fix is in JavaScriptCore.
+
+ Test cases added:
+
+ * layout-tests/fast/js/date-big-setmonth-expected.txt: Added.
+ * layout-tests/fast/js/date-big-setmonth.html: Added.
+
2005-09-07 Vicki Murley <vicki at apple.com>
Reviewed by Justin.
1.1 WebCore/layout-tests/fast/js/date-big-setmonth-expected.txt
Index: date-big-setmonth-expected.txt
===================================================================
This test checks for a regression against http://bugzilla.opendarwin.org/show_bug.cgi?id=4781 Date.setMonth fails with big values due to overflow.
If the test passes, you will see a "PASSED" message below.
PASSED: date value is 307666800000
1.1 WebCore/layout-tests/fast/js/date-big-setmonth.html
Index: date-big-setmonth.html
===================================================================
<html>
<head>
<script>
function print(message) {
var paragraph = document.createElement("p");
paragraph.appendChild(document.createTextNode(message));
document.getElementById("console").appendChild(paragraph);
}
function test() {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
var d = new Date(0);
var status = "FAILED: ";
d.setMonth(128);
if (d.valueOf() == 307666800000) {
status = "PASSED: ";
}
print(status + "date value is " + d.valueOf());
}
</script>
</head>
<body onload="test();">
<p>This test checks for a regression against <i>http://bugzilla.opendarwin.org/show_bug.cgi?id=4781 Date.setMonth fails with big values due to overflow</i>.</p>
<p>If the test passes, you will see a "PASSED" message below.</p>
<hr>
<div id='console'/>
</body>
</html>
More information about the webkit-changes
mailing list