blob: c0740272f95a5f6277d6aa2d9588986360b93a57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<!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>
|