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

Side by Side Diff: LayoutTests/accessibility/listbox-focus.html

Issue 1034493005: Fire AX notifications on list box options. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@menu_list_more
Patch Set: Update expectations for other test that failed Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/accessibility/multiselect-list-reports-active-option-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <select id="listbox" size="3">
5 <option id="item0">Alicia</option>
6 <option id="item1">Peter</option>
7 <option id="item2">Kalinda</option>
8 </select>
9 <script>
10 async_test(function(t)
11 {
12 var listbox = document.getElementById("listbox");
13 listbox.selectedIndex = 0;
14 listbox.focus();
15
16 accessibilityController.accessibleElementById('dummy');
17
18 var gotCheckedStateChanged = false;
19 var gotSelectedChildrenChanged = false;
20 var gotFocus = false;
21
22 window.setTimeout(function() {
23 var result = "";
24 accessibilityController.addNotificationListener(t.step_func(function lis tener(element, notification) {
25 if (notification == "CheckedStateChanged") {
26 assert_equals(element.role, "AXRole: AXListBoxOption");
27 gotCheckedStateChanged = true;
28 }
29 if (notification == "SelectedChildrenChanged") {
30 assert_equals(element.role, "AXRole: AXListBox");
31 gotSelectedChildrenChanged = true;
32 }
33 if (notification == "Focus") {
34 assert_equals(element.role, "AXRole: AXListBoxOption");
35 gotFocus = true;
36 }
37 if (gotCheckedStateChanged && gotSelectedChildrenChanged && gotFocus ) {
38 t.done();
39 }
40 }));
41
42 listbox.selectedIndex = 1;
43 }, 0);
44 }, "menu list fires focus event on close");
45 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/multiselect-list-reports-active-option-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698