OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script src="../../../resources/js-test.js"></script> | |
4 </head> | |
5 <body> | |
keishi
2014/07/03 07:13:38
nit:extra space
Habib Virji
2014/07/03 17:24:04
Done.
| |
6 <select id="select"> | |
7 <option value="one">One</option> | |
8 <option value="two">Two</option> | |
9 </select> | |
10 | |
11 <script> | |
12 function test() | |
13 { | |
14 description('Test for opening select popup using alt+KeyDown and closing by pressing alt+keyDown again</i>.'); | |
keishi
2014/07/03 07:13:38
down arrow is better. keydown is also an event nam
Habib Virji
2014/07/03 17:24:04
Done.
| |
15 | |
16 popup = document.getElementById('select'); | |
17 popup.focus(); | |
18 | |
19 eventSender.keyDown('downArrow', ['altKey']); | |
20 shouldBeTrue('internals.isSelectPopupVisible(popup)'); | |
21 | |
22 eventSender.keyDown('downArrow', ['altKey']); | |
23 shouldBeFalse('internals.isSelectPopupVisible(popup)'); | |
24 } | |
25 test(); | |
26 </script> | |
27 </body> | |
28 </html> | |
OLD | NEW |