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

Unified Diff: LayoutTests/fast/forms/calendar-picker/month-open-picker-with-f4-key.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/calendar-picker/month-open-picker-with-f4-key.html
diff --git a/LayoutTests/fast/forms/calendar-picker/month-open-picker-with-f4-key.html b/LayoutTests/fast/forms/calendar-picker/month-open-picker-with-f4-key.html
index 99983d4c14b26362cad6bb7ef13a3a9fee9a8b62..74954b184dfe3f6c85f81f3723f60f898ed49707 100644
--- a/LayoutTests/fast/forms/calendar-picker/month-open-picker-with-f4-key.html
+++ b/LayoutTests/fast/forms/calendar-picker/month-open-picker-with-f4-key.html
@@ -21,6 +21,7 @@ shouldBeNonNull('internals.pagePopupWindow');
function sendKey(input, keyName, ctrlKey, altKey) {
var event = document.createEvent('KeyboardEvent');
event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName, 0, ctrlKey, altKey);
+ input.focus();
input.dispatchEvent(event);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698