[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-26 1:54:20
Message-ID: 1159235660.040611.4282.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 588453 by porten:
parsing oddities uncovered by #133517
M +6 -0 Date.js
--- trunk/tests/khtmltests/regression/tests/js/Date.js #588452:588453
@@ -298,6 +298,12 @@
shouldBe("(new Date('12/25/1995 ::')).valueOf()",
"(new Date('12/25/1995')).valueOf()");
+// use of ',', '-' and ':' instead of whitespace
+shouldBe("new Date(',-:,September 03 2006, 13:53:02').getDate()", "3");
+shouldBe("new Date('September,03,-:,2006, 13:53:02,-:').getSeconds()", "02");
+shouldBeTrue("isNaN(new Date('September,03,-:,2006, 13:53:02:'))");
+shouldBeTrue("isNaN(new Date('September 03 2006:13:53:02:'))");
+
// Tolerance for high values in xx/xx/xxxx
shouldBe("new Date('03/30/2006').getDate()", "30");
shouldBe("new Date('Mar 30 2006').toString()", "new Date('03/30/2006').toString()");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic