| 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..c5656703427b1304ea443e63f70217cc9789af7d 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
|
| @@ -8,6 +8,8 @@
|
| <option value="two">Two</option>
|
| </select>
|
| <script>
|
| +window.jsTestIsAsync = true;
|
| +
|
| function test()
|
| {
|
| description('Test for opening select popup and closing.');
|
| @@ -21,6 +23,11 @@ function test()
|
| eventSender.keyDown('downArrow', ['altKey']);
|
| shouldBeTrue('internals.isSelectPopupVisible(popup)');
|
| eventSender.keyDown('downArrow', ['altKey']);
|
| + // 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 +35,11 @@ function test()
|
| eventSender.keyDown('upArrow', ['altKey']);
|
| shouldBeTrue('internals.isSelectPopupVisible(popup)');
|
| eventSender.keyDown('upArrow', ['altKey']);
|
| + // 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();
|
|
|
| @@ -59,6 +71,7 @@ function test()
|
| shouldBeTrue('internals.isSelectPopupVisible(popup)');
|
| popup.blur();
|
|
|
| + finishJSTest();
|
| }
|
| test();
|
| </script>
|
|
|