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

Side by Side Diff: LayoutTests/accessibility/aria-controls.html

Issue 844543002: Adding aria-flowto.html, aria-controls.html and aria-owns.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/aria-controls-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 PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
7
8 <ul id="tablist_1" role="tablist">
9 <li id="tab_1" role="tab" aria-controls="panel_1 panel_2"></li>
10 </ul>
11
12 <div id="panel_1" role="tabpanel">Panel 1</div>
13 <div id="panel_2" role="tabpanel">Panel 2</div>
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19 description("This tests that aria-controls identifies the correct element");
20
21 if (window.accessibilityController) {
22 var tab_1 = accessibilityController.accessibleElementById("tablist_1").c hildAtIndex(0);
23 var panel_1 = accessibilityController.accessibleElementById("panel_1");
24 var panel_2 = accessibilityController.accessibleElementById("panel_2");
25
26 shouldBeTrue("tab_1.ariaControlsElementAtIndex(0).isEqual(panel_1)");
27 shouldBeTrue("tab_1.ariaControlsElementAtIndex(1).isEqual(panel_2)");
28
29 }
30
31 </script>
32
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-controls-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698