Index: LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html |
diff --git a/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html b/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html |
index 9f2ebd16e6e1fdc367b383a97a0c07fcc9b004e7..9557ef4af211f84927f2e91d6e73efa8f5ef6716 100644 |
--- a/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html |
+++ b/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html |
@@ -21,6 +21,11 @@ function test() |
eventSender.keyDown('downArrow', ['altKey']); |
shouldBeTrue('internals.isSelectPopupVisible(popup)'); |
eventSender.keyDown('downArrow', ['altKey']); |
+ // FIXME: We need this delay because in ListPicker._handleKeyDown |
+ // we hide the popup with a delay to avoid reopening the popup. |
+ setTimeout(test2, 0); |
+} |
+function test2() { |
shouldBeFalse('internals.isSelectPopupVisible(popup)'); |
debug('Test opening and closing of popup using alt and up arrow key'); |
@@ -28,6 +33,11 @@ function test() |
eventSender.keyDown('upArrow', ['altKey']); |
shouldBeTrue('internals.isSelectPopupVisible(popup)'); |
eventSender.keyDown('upArrow', ['altKey']); |
+ // FIXME: We need this delay because in ListPicker._handleKeyDown |
+ // we hide the popup with a delay to avoid reopening the popup. |
+ setTimeout(test3, 0); |
+} |
+function test3() { |
shouldBeFalse('internals.isSelectPopupVisible(popup)'); |
popup.blur(); |