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

Unified Diff: LayoutTests/fast/forms/calendar-picker/datetimelocal-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/datetimelocal-open-picker-with-f4-key.html
diff --git a/LayoutTests/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key.html b/LayoutTests/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key.html
index fbac64e0cce9e4c80a0c244ed91a2c98c7393267..11b373720d282a5dde9328c1dc618e4ee614e087 100644
--- a/LayoutTests/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key.html
+++ b/LayoutTests/fast/forms/calendar-picker/datetimelocal-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