Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html

Issue 368023003: Popup open and hide using Alt+KeyDown (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698