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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.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, 6 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: third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html b/third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html
index c5656703427b1304ea443e63f70217cc9789af7d..4ac6b1980b83b83a31a94df5180268663e2e7f95 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html
@@ -20,9 +20,9 @@ function test()
debug('Test opening and closing of popup using alt and down arrow key');
popup.focus();
- eventSender.keyDown('downArrow', ['altKey']);
+ eventSender.keyDown('ArrowDown', ['altKey']);
shouldBeTrue('internals.isSelectPopupVisible(popup)');
- eventSender.keyDown('downArrow', ['altKey']);
+ eventSender.keyDown('ArrowDown', ['altKey']);
// We need this delay because in ListPicker._handleKeyDown we hide the
// popup with a delay to avoid reopening the popup.
setTimeout(test2, 0);
@@ -32,9 +32,9 @@ function test2() {
debug('Test opening and closing of popup using alt and up arrow key');
popup.focus();
- eventSender.keyDown('upArrow', ['altKey']);
+ eventSender.keyDown('ArrowUp', ['altKey']);
shouldBeTrue('internals.isSelectPopupVisible(popup)');
- eventSender.keyDown('upArrow', ['altKey']);
+ eventSender.keyDown('ArrowUp', ['altKey']);
// We need this delay because in ListPicker._handleKeyDown we hide the
// popup with a delay to avoid reopening the popup.
setTimeout(test3, 0);
@@ -67,7 +67,7 @@ function test3() {
debug('Test opening of popup using up key');
popup.focus();
- eventSender.keyDown('upArrow');
+ eventSender.keyDown('ArrowUp');
shouldBeTrue('internals.isSelectPopupVisible(popup)');
popup.blur();

Powered by Google App Engine
This is Rietveld 408576698