5 <script src=
"../../../resources/js-test.js"></script>
7 window
.jsTestIsAsync
= true;
9 var finishTest
= false;
11 function optionChanged() {
18 document
.getElementById("bug-test").focus();
19 if (window
.eventSender
) {
20 debug("Pressing down arrow key");
21 eventSender
.keyDown('downArrow');
23 debug("Pressing up arrow key");
24 eventSender
.keyDown('upArrow');
26 debug("Pressing page down key");
27 eventSender
.keyDown('pageDown');
29 debug("Pressing page up key");
30 eventSender
.keyDown('pageUp');
32 debug("Pressing end key");
33 eventSender
.keyDown('end');
37 debug("Pressing home key");
38 eventSender
.keyDown('home');
40 debug("Test manually by pressing up/down key. Should get PASS message");
45 successfullyParsed
= true;
48 <body onload=
"test()">
49 <p>Selecting menu list options using up/down key should fire onchange event
</p>
51 <select id=
"bug-test" onChange=
"optionChanged()">
52 <option>option
1</option>
53 <option>option
2</option>
54 <option>option
3</option>
55 <option>option
4</option>
58 <div id=
"console"></div>