| 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-01" | |
| 13 PASS highlightedEntry() is "2012-01-02" | |
| 14 PASS highlightedEntry() is "2012-01-01" | |
| 15 Check that up arrow key at top of list does nothing. | |
| 16 PASS highlightedEntry() is "2012-01-01" | |
| 17 PASS highlightedEntry() is "2012-01-02" | |
| 18 Check that page up/down arrow keys work. | |
| 19 PASS highlightedEntry() is "2012-02-09" | |
| 20 PASS highlightedEntry() is "2012-02-29" | |
| 21 PASS highlightedEntry() is "2012-01-21" | |
| 22 PASS highlightedEntry() is "2012-02-29" | |
| 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 "2012-03-08" | |
| 28 PASS document.getElementById("mock-page-popup") is null | |
| 29 PASS document.getElementById("date").value is "2012-03-08" | |
| 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("date").value is "2012-03-08" | |
| 40 PASS successfullyParsed is true | |
| 41 | |
| 42 TEST COMPLETE | |
| 43 | |
| OLD | NEW |