| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../../../fast/js/resources/js-test-pre.js"></script> |
| 5 <script src="../../../../../fast/forms/resources/picker-common.js"></script> | 5 <script src="../../../../../fast/forms/resources/picker-common.js"></script> |
| 6 <script src="resources/calendar-picker-common.js"></script> | 6 <script src="resources/calendar-picker-common.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <p id="description"></p> | 9 <p id="description"></p> |
| 10 <div id="console"></div> | 10 <div id="console"></div> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Test twice in case midnight. | 91 // Test twice in case midnight. |
| 92 shouldBeTrue('testToday() || testToday()'); | 92 shouldBeTrue('testToday() || testToday()'); |
| 93 | 93 |
| 94 debug('Check if tabbing works.'); | 94 debug('Check if tabbing works.'); |
| 95 shouldBe('focusedElement()', '".days-area-container"'); | 95 shouldBe('focusedElement()', '".days-area-container"'); |
| 96 eventSender.keyDown('\t'); | 96 eventSender.keyDown('\t'); |
| 97 shouldBe('focusedElement()', '".today-button[value=<<ThisMonthLabel>>]"'); | 97 shouldBe('focusedElement()', '".today-button[value=<<ThisMonthLabel>>]"'); |
| 98 eventSender.keyDown('\t'); | 98 eventSender.keyDown('\t'); |
| 99 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"'); | 99 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"'); |
| 100 eventSender.keyDown('\t'); | 100 eventSender.keyDown('\t'); |
| 101 shouldBe('focusedElement()', '".year-month-button[value=<<]"'); | 101 shouldBe('focusedElement()', '".year-month-button"'); |
| 102 eventSender.keyDown('\t', ['shiftKey']); | 102 eventSender.keyDown('\t', ['shiftKey']); |
| 103 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"'); | 103 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"'); |
| 104 | 104 |
| 105 eventSender.keyDown('\x1B'); | 105 eventSender.keyDown('\x1B'); |
| 106 waitUntilClosing(test2AfterClosing); | 106 waitUntilClosing(test2AfterClosing); |
| 107 } | 107 } |
| 108 | 108 |
| 109 function test2AfterClosing() { | 109 function test2AfterClosing() { |
| 110 shouldBeNull('document.getElementById("mock-page-popup")'); | 110 shouldBeNull('document.getElementById("mock-page-popup")'); |
| 111 shouldBe('document.getElementById("month").value', '"2000-02"'); | 111 shouldBe('document.getElementById("month").value', '"2000-02"'); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 131 var identifier = "." + element.className; | 131 var identifier = "." + element.className; |
| 132 if (element.value) | 132 if (element.value) |
| 133 identifier += "[value=" + element.value + "]"; | 133 identifier += "[value=" + element.value + "]"; |
| 134 return identifier; | 134 return identifier; |
| 135 } | 135 } |
| 136 | 136 |
| 137 </script> | 137 </script> |
| 138 <script src="../../../../../fast/js/resources/js-test-post.js"></script> | 138 <script src="../../../../../fast/js/resources/js-test-post.js"></script> |
| 139 </body> | 139 </body> |
| 140 </html> | 140 </html> |
| OLD | NEW |