| Index: third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-key-operations.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-key-operations.html b/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-key-operations.html
|
| index 54febb5531d83384104b2a9422b5a7160fbcf04b..9287cbb4d72ad5e11d693f1a5720955ceff2e64c 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-key-operations.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-key-operations.html
|
| @@ -14,9 +14,14 @@
|
| <option>garply</option>
|
| </optgroup>
|
| </select>
|
| +<select id="menu2">
|
| + <option>abc</option>
|
| + <option>xyz</option>
|
| +</select>
|
| <div id="console"></div>
|
| <script>
|
| var menu = document.getElementById('menu');
|
| +var menu2 = document.getElementById('menu2');
|
| var picker = null;
|
| function openPickerErrorCallback() {
|
| testFailed('picker didn\'t open')
|
| @@ -171,6 +176,19 @@ function test6() {
|
| shouldBeEqualToString('menu.value', 'foo');
|
| shouldBeEqualToString('internals.selectMenuListText(menu)', 'foo');
|
|
|
| + waitUntilClosing(() => {
|
| + menu2.selectedIndex = -1;
|
| + openPicker(menu2, testEnterWithoutSelection, openPickerErrorCallback);
|
| + });
|
| +}
|
| +
|
| +function testEnterWithoutSelection() {
|
| + picker = window.internals.pagePopupWindow.global.picker;
|
| + shouldBeEqualToString('picker._selectElement.value', '');
|
| + eventSender.keyDown('Enter');
|
| + shouldBeNull('window.internals.pagePopupWindow');
|
| + shouldBeEqualToString('menu2.value', '');
|
| +
|
| finishJSTest();
|
| }
|
| </script>
|
|
|