OLD | NEW |
| (Empty) |
1 Tests that key bindings 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 Check that page popup exists. | |
9 PASS popupWindow.pagePopupController.toString() is "[object PagePopupController]
" | |
10 Check that up/down arrow keys work. | |
11 PASS highlightedEntry() is null | |
12 PASS highlightedEntry() is "2012-01" | |
13 PASS highlightedEntry() is "2012-02" | |
14 PASS highlightedEntry() is "2012-01" | |
15 Check that up arrow key at top of list does nothing. | |
16 PASS highlightedEntry() is "2012-01" | |
17 PASS highlightedEntry() is "2012-02" | |
18 Check that page up/down arrow keys work. | |
19 PASS highlightedEntry() is "2015-04" | |
20 PASS highlightedEntry() is "2016-12" | |
21 PASS highlightedEntry() is "2013-09" | |
22 PASS highlightedEntry() is "2016-12" | |
23 PASS highlightedEntry() is "@openCalendarPicker" | |
24 Check that down arrow key at bottom of list does nothing. | |
25 PASS highlightedEntry() is "@openCalendarPicker" | |
26 Check that enter key sets the highlighted value. | |
27 PASS highlightedEntry() is "2016-12" | |
28 PASS document.getElementById("mock-page-popup") is null | |
29 PASS document.getElementById("month").value is "2016-12" | |
30 Reopen popup. | |
31 PASS highlightedEntry() is "@openCalendarPicker" | |
32 Open calendar picker. | |
33 PASS expectingDidHideEvent is true | |
34 PASS expectingDidHideEvent is false | |
35 Confirm calendar picker did open. | |
36 PASS popupWindow.document.getElementById("main").firstChild.classList.contains("
calendar-picker") is true | |
37 Check that escape key closes the popup. | |
38 PASS document.getElementById("mock-page-popup") is null | |
39 PASS document.getElementById("month").value is "2016-12" | |
40 PASS F4 opened picker. | |
41 PASS successfullyParsed is true | |
42 | |
43 TEST COMPLETE | |
44 | |
OLD | NEW |