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

Unified Diff: LayoutTests/fast/forms/calendar-picker/date-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/date-open-picker-with-f4-key.html
diff --git a/LayoutTests/fast/forms/calendar-picker/date-open-picker-with-f4-key.html b/LayoutTests/fast/forms/calendar-picker/date-open-picker-with-f4-key.html
index ddd927d6a479937e1b05282eb08e46f848af0ce3..be96a1ef2384983122b307a439c04abd3402647e 100644
--- a/LayoutTests/fast/forms/calendar-picker/date-open-picker-with-f4-key.html
+++ b/LayoutTests/fast/forms/calendar-picker/date-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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/calendar-picker/date-picker-open-without-focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698