<!DOCTYPE html> <html> <head> <script src="../../../resources/js-test.js"></script> <script src="../resources/common.js"></script> <script src="../resources/picker-common.js"></script> </head> <body> <select id="menu"> <option selected>foo</option> <option>bar</option> </select> <script> var menu = document.getElementById('menu'); var picker = null; function openPickerErrorCallback() { testFailed('picker didn\'t open') finishJSTest(); } menu.onchange = function() { menu.multiple = true; }; openPicker(menu, test1, openPickerErrorCallback); description('Test for crbug.com/477932 . Pass if we don\'t crash.'); function test1() { picker = window.internals.pagePopupWindow.global.picker; eventSender.keyDown('downArrow'); eventSender.keyDown('escape'); finishJSTest(); } </script> </body> </html>