Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select / popup-menu-crash-on-cancel.html
blobc0740272f95a5f6277d6aa2d9588986360b93a57
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/common.js"></script>
6 <script src="../resources/picker-common.js"></script>
7 </head>
8 <body>
9 <select id="menu">
10 <option selected>foo</option>
11 <option>bar</option>
12 </select>
13 <script>
14 var menu = document.getElementById('menu');
15 var picker = null;
16 function openPickerErrorCallback() {
17 testFailed('picker didn\'t open')
18 finishJSTest();
20 menu.onchange = function() {
21 menu.multiple = true;
23 openPicker(menu, test1, openPickerErrorCallback);
24 description('Test for crbug.com/477932 . Pass if we don\'t crash.');
25 function test1() {
26 picker = window.internals.pagePopupWindow.global.picker;
27 eventSender.keyDown('downArrow');
28 eventSender.keyDown('escape');
30 finishJSTest();
32 </script>
33 </body>
34 </html>