OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="../../forms/resources/picker-common.js"></script> | 5 <script src="../../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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 shouldBeEqualToString('highlightedDayCells()', ''); | 221 shouldBeEqualToString('highlightedDayCells()', ''); |
222 | 222 |
223 debug("focus calendar table"); | 223 debug("focus calendar table"); |
224 popupWindow.global.picker.calendarTableView.element.focus(); | 224 popupWindow.global.picker.calendarTableView.element.focus(); |
225 | 225 |
226 // Test twice in case midnight. | 226 // Test twice in case midnight. |
227 debug("press t"); | 227 debug("press t"); |
228 shouldBeTrue('testToday() || testToday()'); | 228 shouldBeTrue('testToday() || testToday()'); |
229 | 229 |
230 debug("press esc"); | 230 debug("press esc"); |
231 eventSender.keyDown('\x1B'); | 231 eventSender.keyDown("escape"); |
232 waitUntilClosing(test2AfterClosing); | 232 waitUntilClosing(test2AfterClosing); |
233 } | 233 } |
234 | 234 |
235 function test2AfterClosing() { | 235 function test2AfterClosing() { |
236 shouldBeNull('document.getElementById("mock-page-popup")'); | 236 shouldBeNull('document.getElementById("mock-page-popup")'); |
237 | 237 |
238 finishJSTest(); | 238 finishJSTest(); |
239 } | 239 } |
240 | 240 |
241 function testToday() { | 241 function testToday() { |
(...skipping 10 matching lines...) Expand all Loading... |
252 return null; | 252 return null; |
253 var identifier = "." + element.className; | 253 var identifier = "." + element.className; |
254 if (element.value) | 254 if (element.value) |
255 identifier += "[value=" + element.value + "]"; | 255 identifier += "[value=" + element.value + "]"; |
256 return identifier; | 256 return identifier; |
257 } | 257 } |
258 | 258 |
259 </script> | 259 </script> |
260 </body> | 260 </body> |
261 </html> | 261 </html> |
OLD | NEW |