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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/aria-label.html

Issue 2382083002: Make LayoutTests ambivalent of of anonymous blocks (Closed)
Patch Set: Created 4 years, 2 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
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body id="body"> 6 <body id="body">
7 <input aria-label="aria label" type="text" size=20> 7 <input id="text" aria-label="aria label" type="text" size=20>
8 <a href="#" aria-label="aria link">test</a> 8 <a id="link" href="#" aria-label="aria link">test</a>
9 <p id="description"></p> 9 <p id="description"></p>
10 <div id="console"></div> 10 <div id="console"></div>
11 11
12 <script> 12 <script>
13 13
14 description("This tests that the aria-label attribute works. The input and t he A tag should return the appropriate description."); 14 description("This tests that the aria-label attribute works. The input and t he A tag should return the appropriate description.");
15 15
16 if (window.accessibilityController) { 16 if (window.accessibilityController) {
17 17
18 var body = document.getElementById("body"); 18 var obj = accessibilityController.accessibleElementById("text");
19 body.focus();
20 var obj = accessibilityController.focusedElement.childAtIndex(0).child AtIndex(0);
21 var succeeded = obj.name == "aria label"; 19 var succeeded = obj.name == "aria label";
22 shouldBe("succeeded", "true"); 20 shouldBe("succeeded", "true");
23 21
24 obj = accessibilityController.focusedElement.childAtIndex(0).childAtIn dex(1); 22 obj = accessibilityController.accessibleElementById("link");
25 succeeded = obj.name == "aria link"; 23 succeeded = obj.name == "aria link";
26 shouldBe("succeeded", "true"); 24 shouldBe("succeeded", "true");
27 } 25 }
28 26
29 </script> 27 </script>
30 28
31 </body> 29 </body>
32 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698