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

Side by Side Diff: LayoutTests/accessibility/aria-owns.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
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 <div id="elements" role="group" aria-owns="item1 item2">
9 <div>Element 1</div>
10 <div>Element 2</div>
11 </div>
12
13 <div id="item1" role="checkbox"></div>
14 <div id="item2" role="radio"></div>
15
16 <p id="description"></p>
17 <div id="console"></div>
18
19 <script>
20 description("This tests that aria-owns identifies the correct element");
21
22 if (window.accessibilityController) {
23 var elements = accessibilityController.accessibleElementById("elements") ;
24 var item1 = accessibilityController.accessibleElementById("item1");
25 var item2 = accessibilityController.accessibleElementById("item2");
26
27 shouldBeTrue("elements.ariaOwnsElementAtIndex(0).isEqual(item1)");
28 shouldBeTrue("elements.ariaOwnsElementAtIndex(1).isEqual(item2)");
29 }
30
31 </script>
32
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/aria-flowto-expected.txt ('k') | LayoutTests/accessibility/aria-owns-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698