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

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

Issue 1311013012: date/time inputs should not handle keyboard events if they aren't focused. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update *-open-picker-with-f4-key.html Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/picker-common.js"></script>
6 <div id="parent"><input type="date" id="input"></div>
7 <script>
8 description('Calender picker should not open when the owner element has no focus .');
9 var input = document.getElementById('input');
10 input.focus();
11 input.remove();
12 input.offsetTop;
13 sendKey(input, "Down", false, true);
14 if (window.internals.pagePopupWindow) {
15 testFailed('Popup was opened.');
16 finishJSTest();
17 } else {
18 testPassed('Popup did not open.');
19 finishJSTest();
20 }
21 </script>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698