[Webkit-unassigned] [Bug 108566] calendar-picker-key-operations.html is failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 31 21:56:49 PST 2013


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





--- Comment #2 from Kent Tamura <tkent at chromium.org>  2013-01-31 21:58:51 PST ---
> function testToday() {
>     eventSender.keyDown('t');
>     var now = new Date();
>     var expectedDate = serializeDate(now.getFullYear(), now.getMonth(), now.getDate());
>     var expectedMonth = popupWindow.Month.createFromDate(now).toString();
>     return selectedDate() === expectedDate && currentMonth() === expectedMonth;
> }

There is a timezone mismatch.  createFromDate() expects that the input represents a date in UTC.  So, the test started failing since January ended in UTC but it's still January in PST.

-- 
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