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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html
diff --git a/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html b/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html
new file mode 100644
index 0000000000000000000000000000000000000000..1b6f293e6b017829644f005ba1f34fcf67b6cc48
--- /dev/null
+++ b/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+ <body>
keishi 2014/07/03 07:13:38 nit:extra space
Habib Virji 2014/07/03 17:24:04 Done.
+<select id="select">
+<option value="one">One</option>
+<option value="two">Two</option>
+</select>
+
+<script>
+function test()
+{
+ 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.
+
+ popup = document.getElementById('select');
+ popup.focus();
+
+ eventSender.keyDown('downArrow', ['altKey']);
+ shouldBeTrue('internals.isSelectPopupVisible(popup)');
+
+ eventSender.keyDown('downArrow', ['altKey']);
+ shouldBeFalse('internals.isSelectPopupVisible(popup)');
+}
+test();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698