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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/calendar-picker/date-picker-open-without-focus.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 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 <body> 3 <body>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/picker-common.js"></script> 5 <script src="../resources/picker-common.js"></script>
6 <div id="parent"><input type="date" id="input"></div> 6 <div id="parent"><input type="date" id="input"></div>
7 <script> 7 <script>
8 description('Calender picker should not open when the owner element has no focus .'); 8 description('Calender picker should not open when the owner element has no focus .');
9 var input = document.getElementById('input'); 9 var input = document.getElementById('input');
10 input.focus(); 10 input.focus();
11 input.remove(); 11 input.remove();
12 input.offsetTop; 12 input.offsetTop;
13 eventSender.keyDown("downArrow", ["altKey"]); 13 eventSender.keyDown("ArrowDown", ["altKey"]);
14 if (window.internals.pagePopupWindow) { 14 if (window.internals.pagePopupWindow) {
15 testFailed('Popup was opened.'); 15 testFailed('Popup was opened.');
16 finishJSTest(); 16 finishJSTest();
17 } else { 17 } else {
18 testPassed('Popup did not open.'); 18 testPassed('Popup did not open.');
19 finishJSTest(); 19 finishJSTest();
20 } 20 }
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698