Add more tests for calendar picker
https://bugs.webkit.org/show_bug.cgi?id=98034
Reviewed by Kent Tamura.
This adds basic tests for all key bindings and simple mouse operations.
* fast/forms/date/calendar-picker-common.js: Added.
(currentMonth): Returns month that the picker is currently showing.
(selectedDate):
(openPicker): Opens the calendar picker and updates popupWindow.
(sendKey):
* fast/forms/date/calendar-picker-key-operations-expected.txt:
* fast/forms/date/calendar-picker-key-operations.html:
* fast/forms/date/calendar-picker-mouse-operations-expected.txt: Added.
* fast/forms/date/calendar-picker-mouse-operations.html: Added.
* fast/forms/resources/common.js:
(cumulativeOffset):
(hoverOverElement):
(clickElement):
* platform/chromium/fast/forms/date/date-suggestion-picker-mouse-operations.html:
* platform/gtk/TestExpectations: Added calendar-picker-mouse-operations.html.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk/LayoutTests@130111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9 files changed