| OLD | NEW |
| (Empty) |
| 1 Tests if month picker mouse operations work as expected. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 Check that page popup doesn't exist at first. | |
| 7 PASS document.getElementById("mock-page-popup") is null | |
| 8 PASS currentMonth() is "2000-01" | |
| 9 PASS selectedValue() is "2000-01" | |
| 10 PASS selectedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-
05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,
2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,200
0-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-0
1-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 11 PASS highlightedValue() is "2000-01" | |
| 12 PASS highlightedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-
01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-
12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,
2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,200
0-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 13 Check that hovering over an entry highlights it. | |
| 14 PASS currentMonth() is "2000-01" | |
| 15 PASS selectedValue() is "2000-01" | |
| 16 PASS selectedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-
05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,
2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,200
0-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-0
1-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 17 PASS highlightedValue() is "1999-12" | |
| 18 PASS highlightedDayCells() is "1999-12-26,1999-12-27,1999-12-28,1999-12-29,1999-
12-30,1999-12-31" | |
| 19 PASS currentMonth() is "2000-01" | |
| 20 PASS selectedValue() is "2000-01" | |
| 21 PASS selectedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-
05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,
2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,200
0-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-0
1-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 22 PASS highlightedValue() is "2000-02" | |
| 23 PASS highlightedDayCells() is "2000-02-01,2000-02-02,2000-02-03,2000-02-04,2000-
02-05" | |
| 24 PASS currentMonth() is "2000-01" | |
| 25 PASS selectedValue() is "2000-01" | |
| 26 PASS selectedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-
05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,
2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,200
0-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-0
1-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 27 PASS highlightedValue() is "2000-01" | |
| 28 PASS highlightedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-
01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-
12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,
2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,200
0-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 29 Check that mouse click sets the value. | |
| 30 PASS currentMonth() is "2000-01" | |
| 31 PASS selectedValue() is "2000-01" | |
| 32 PASS selectedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-
05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,
2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,200
0-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-0
1-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 33 PASS highlightedValue() is "2000-01" | |
| 34 PASS highlightedDayCells() is "2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-
01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-
12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,
2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,200
0-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31" | |
| 35 PASS document.getElementById("month").value is "2000-01" | |
| 36 Check that clicking the month popup button opens the month popup. | |
| 37 PASS popupWindow.global.picker.monthPopupView.isVisible is false | |
| 38 PASS popupWindow.global.picker.monthPopupView.isVisible is true | |
| 39 PASS highlightedMonthButton() is "2000-01" | |
| 40 Check that hovering over a month button highlights it. | |
| 41 PASS highlightedMonthButton() is "2000-10" | |
| 42 Check that month wheel scrolls the list in the month popup. | |
| 43 PASS checkYearListViewScrollOffset() > 0 is true | |
| 44 PASS checkYearListViewScrollOffset() < 0 is true | |
| 45 Check that clicking the month popup sets the month. | |
| 46 PASS popupWindow.global.picker.monthPopupView.isVisible is false | |
| 47 PASS currentMonth() is "2000-06" | |
| 48 Check that clicking the month popup button opens the month popup. | |
| 49 PASS popupWindow.global.picker.monthPopupView.isVisible is false | |
| 50 PASS popupWindow.global.picker.monthPopupView.isVisible is true | |
| 51 PASS highlightedMonthButton() is "2000-06" | |
| 52 Check that hovering over a month button highlights it. | |
| 53 PASS highlightedMonthButton() is "2000-10" | |
| 54 Check that month wheel scrolls the list in the month popup. | |
| 55 PASS checkYearListViewScrollOffset() > 0 is true | |
| 56 PASS checkYearListViewScrollOffset() < 0 is true | |
| 57 Check that clicking an year list cell opens it. | |
| 58 PASS checkYearListViewScrollOffset() > 0 is true | |
| 59 PASS highlightedMonthButton() is "1999-10" | |
| 60 Check that clicking the month popup sets the month. | |
| 61 PASS popupWindow.global.picker.monthPopupView.isVisible is false | |
| 62 PASS currentMonth() is "1999-06" | |
| 63 PASS successfullyParsed is true | |
| 64 | |
| 65 TEST COMPLETE | |
| 66 | |
| OLD | NEW |