[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    tests/khtmltests/regression/tests/js
From:       Harri Porten <porten () kde ! org>
Date:       2006-09-30 22:09:58
Message-ID: 1159654198.716302.10632.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 590802 by porten:

stress mktime() at epoch boundary


 M  +4 -0      Date.js  


--- trunk/tests/khtmltests/regression/tests/js/Date.js #590801:590802
@@ -57,6 +57,10 @@
 shouldBe("d2.getFullYear()", "1976");
 shouldBe("d2.getMonth()", "3");
 shouldBe("d2.getDate()", "20");
+d2.setFullYear(1970, 0, 1); // Unix epoch
+shouldBe("d2.getFullYear()", "1970");
+shouldBe("d2.getMonth()", "0");
+shouldBe("d2.getDate()", "1");
 
 // ### fix: shouldBe("d2.setYear(-1), d2.getFullYear()", "-1");
 shouldBe("d2.setYear(0), d2.getFullYear()", "1900");
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic