2 Tests if calendar picker mouse opearations work as expected.
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 Check that page popup doesn't exist at first.
8 PASS document.getElementById("mock-page-popup") is null
9 PASS currentMonth() is "2000-01"
10 PASS selectedValue() is "2000-01-02"
11 PASS selectedDayCells() is "2000-01-02"
12 PASS highlightedValue() is "2000-01-02"
13 PASS highlightedDayCells() is "2000-01-02"
14 Check that hovering over an entry highlights it.
15 PASS currentMonth() is "2000-01"
16 PASS selectedValue() is "2000-01-02"
17 PASS selectedDayCells() is "2000-01-02"
18 PASS highlightedValue() is "1999-12-31"
19 PASS highlightedDayCells() is "1999-12-31"
20 PASS currentMonth() is "2000-01"
21 PASS selectedValue() is "2000-01-02"
22 PASS selectedDayCells() is "2000-01-02"
23 PASS highlightedValue() is "2000-01-04"
24 PASS highlightedDayCells() is "2000-01-04"
25 Check that navigating between months maintains highlighted position.
26 PASS currentMonth() is "2000-02"
27 PASS selectedValue() is "2000-01-02"
28 PASS selectedDayCells() is ""
29 PASS highlightedValue() is "2000-02-08"
30 PASS highlightedDayCells() is "2000-02-08"
31 Check that mouse click sets the value.
32 PASS document.getElementById("date").value is "2000-02-05"
33 Check that clicking the month popup button opens the month popup.
34 PASS popupWindow.global.picker.monthPopupView.isVisible is false
35 PASS popupWindow.global.picker.monthPopupView.isVisible is true
36 PASS highlightedMonthButton() is "2000-02"
37 Check that hovering over a month button highlights it.
38 PASS highlightedMonthButton() is "2000-10"
39 Check that month wheel scrolls the list in the month popup.
40 PASS checkYearListViewScrollOffset() > 0 is true
41 PASS checkYearListViewScrollOffset() < 0 is true
42 Check that clicking an year list cell opens it.
43 PASS checkYearListViewScrollOffset() > 0 is true
44 PASS highlightedMonthButton() is "1999-10"
45 Check that clicking the month popup sets the month.
46 PASS popupWindow.global.picker.monthPopupView.isVisible is false
47 PASS currentMonth() is "1999-06"
48 PASS successfullyParsed is true