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

Side by Side Diff: LayoutTests/accessibility/menu-list-optgroup.html

Issue 1059503002: Re-land: Don't keep recreating AXMenuListPopup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@suppress_extra_events
Patch Set: Fix optgroup 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/menu-list-popup-reuses-objects.html » ('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="menulist">
5 <option>Random Transformer</option>
6 <optgroup>
7 <option>Optimus Prime</option>
8 <option>Bumblebee</option>
9 <option>Jazz</option>
10 </optgroup>
11 <optgroup>
12 <option>Megatron</option>
13 <option>Starscream</option>
14 <option>Brawl</option>
15 </optgroup>
16 </select>
17 <script>
18 test(function(t)
19 {
20 var axMenuList = accessibilityController.accessibleElementById("menulist");
21 assert_equals(axMenuList.role, "AXRole: AXPopUpButton");
22 var axMenuListPopup = axMenuList.childAtIndex(0);
23 assert_equals(axMenuListPopup.role, "AXRole: AXMenuListPopup");
24 assert_equals(axMenuListPopup.childrenCount, 7);
25 for (var i = 0; i < axMenuListPopup.childrenCount; i++) {
26 assert_equals(axMenuListPopup.childAtIndex(i).role, "AXRole: AXMenuListO ption");
27 }
28 }, "menu list optgroup options are accessible");
29 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/menu-list-popup-reuses-objects.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698