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

Unified Diff: LayoutTests/fast/forms/select/popup-menu-ax.html

Issue 736883002: Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/popup-menu-ax.html
diff --git a/LayoutTests/fast/forms/select/popup-menu-ax.html b/LayoutTests/fast/forms/select/popup-menu-ax.html
new file mode 100644
index 0000000000000000000000000000000000000000..a4fed44a8ddbfbf81aae1c0c2b4fcc2c5fa935d2
--- /dev/null
+++ b/LayoutTests/fast/forms/select/popup-menu-ax.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../../../resources/js-test.js"></script>
+<script src="../../forms/resources/picker-common.js"></script>
+<p id="description"></p>
+<div id="console"></div>
+<select id="menu">
+ <option>foo</option>
+ <option selected>bar</option>
+ <option>qux</option>
+ <option>baz</option>
+</select>
+
+<script>
+description('Tests if typing an arrow key dispatches a |MenuListItemSelected| a11y event.');
+
+window.accessibilityController.setNotificationListener(function(axnode, type) {
+ if (type == 'MenuListItemSelected') {
+ testPassed('Received MenuListItemSelected');
+ finishJSTest();
+ }
+});
+var menu = document.getElementById('menu');
+openPicker(menu, test1);
+
+function test1() {
+ eventSender.keyDown('downArrow');
+}
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698