Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: LayoutTests/fast/forms/calendar-picker/week-picker-key-operations.html

Issue 484353004: Test tidying: use "escape" and "backspace" with eventSender.keyDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 shouldBeEqualToString('highlightedDayCells()', ''); 234 shouldBeEqualToString('highlightedDayCells()', '');
235 235
236 debug("focus calendar table"); 236 debug("focus calendar table");
237 popupWindow.global.picker.calendarTableView.element.focus(); 237 popupWindow.global.picker.calendarTableView.element.focus();
238 238
239 // Test twice in case midnight. 239 // Test twice in case midnight.
240 debug("press t"); 240 debug("press t");
241 shouldBeTrue('testToday() || testToday()'); 241 shouldBeTrue('testToday() || testToday()');
242 242
243 debug("press esc"); 243 debug("press esc");
244 eventSender.keyDown('\x1B'); 244 eventSender.keyDown("escape");
245 waitUntilClosing(test2AfterClosing); 245 waitUntilClosing(test2AfterClosing);
246 } 246 }
247 247
248 function test2AfterClosing() { 248 function test2AfterClosing() {
249 shouldBeNull('document.getElementById("mock-page-popup")'); 249 shouldBeNull('document.getElementById("mock-page-popup")');
250 250
251 finishJSTest(); 251 finishJSTest();
252 } 252 }
253 253
254 function testToday() { 254 function testToday() {
(...skipping 10 matching lines...) Expand all
265 return null; 265 return null;
266 var identifier = "." + element.className; 266 var identifier = "." + element.className;
267 if (element.value) 267 if (element.value)
268 identifier += "[value=" + element.value + "]"; 268 identifier += "[value=" + element.value + "]";
269 return identifier; 269 return identifier;
270 } 270 }
271 271
272 </script> 272 </script>
273 </body> 273 </body>
274 </html> 274 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698