| Tests that key bindings work as expected. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| Check that page popup doesn't exist at first. |
| PASS document.getElementById("mock-page-popup") is null |
| Check that page popup exists. |
| PASS popupWindow.pagePopupController.toString() is "[object PagePopupController]" |
| Check that up/down arrow keys work. |
| PASS highlightedEntry() is null |
| PASS highlightedEntry() is "2012-01-01" |
| PASS highlightedEntry() is "2012-01-02" |
| PASS highlightedEntry() is "2012-01-01" |
| Check that up arrow key at top of list does nothing. |
| PASS highlightedEntry() is "2012-01-01" |
| PASS highlightedEntry() is "2012-01-02" |
| Check that page up/down arrow keys work. |
| PASS highlightedEntry() is "2012-02-09" |
| PASS highlightedEntry() is "2012-02-29" |
| PASS highlightedEntry() is "2012-01-21" |
| PASS highlightedEntry() is "2012-02-29" |
| PASS highlightedEntry() is "@openCalendarPicker" |
| Check that down arrow key at bottom of list does nothing. |
| PASS highlightedEntry() is "@openCalendarPicker" |
| Check that enter key sets the highlighted value. |
| PASS highlightedEntry() is "2012-03-08" |
| PASS document.getElementById("mock-page-popup") is null |
| PASS document.getElementById("date").value is "2012-03-08" |
| Reopen popup. |
| PASS highlightedEntry() is "@openCalendarPicker" |
| Open calendar picker. |
| PASS expectingDidHideEvent is true |
| PASS expectingDidHideEvent is false |
| Confirm calendar picker did open. |
| PASS popupWindow.document.getElementById("main").firstChild.classList.contains("calendar-picker") is true |
| Check that escape key closes the popup. |
| PASS document.getElementById("mock-page-popup") is null |
| PASS document.getElementById("date").value is "2012-03-08" |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |