[Webkit-unassigned] [Bug 82435] [Qt] ecma_3/Date/15.9.5.6.js fails between 00:00-01:00 (PDT)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 22 02:27:32 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=82435





--- Comment #2 from Csaba Osztrogonac <ossy at webkit.org>  2012-06-22 02:27:32 PST ---
The problem is with this test case:
(Date.parse(now.toLocaleDateString()) - (midnight(now)).valueOf()) == 0 = false FAILED! expected: true

You can easily reproduce it with Qt5 based JSC:
new Date("Fri Jun 22 2012 00:56:27 GMT-0700 (PDT)").toLocaleDateString()
June 21, 2012

new Date("Fri Jun 22 2012 01:00:00 GMT-0700 (PDT)").toLocaleDateString()
June 22, 2012

Otherwise it isn't a good idea to use new Date() as now in a test case.
It makes test cases undeterministic ...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list