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

Side by Side Diff: LayoutTests/accessibility/chromium-only-roles.html

Issue 721753004: Rebaseline accessibility/chromium-only-roles.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 5
6 <div id="container" contentEditable> 6 <div id="container" contentEditable>
7 <hr aria-label="hr"> 7 <hr aria-label="hr">
8 <p aria-label="p"></p> 8 <p aria-label="p"></p>
9 <label aria-label="label"></label> 9 <label aria-label="label"></label>
10 <form aria-label="form"></form> 10 <form aria-label="form"></form>
11 <div aria-label="div"></div> 11 <div aria-label="div"></div>
12 </div> 12 </div>
13 13
14 <div id="console"></div> 14 <div id="console"></div>
15 <script> 15 <script>
16 description("This test makes sure that a generic focusable div can get accessibi lity focus."); 16 description("This test makes sure that a generic focusable div can get accessibi lity focus.");
17 17
18 if (window.testRunner && window.accessibilityController) { 18 if (window.testRunner && window.accessibilityController) {
19 window.testRunner.dumpAsText(); 19 window.testRunner.dumpAsText();
20 20
21 document.getElementById('container').focus(); 21 document.getElementById('container').focus();
22 var axContainer = accessibilityController.focusedElement; 22 var axContainer = accessibilityController.focusedElement;
23 23
24 shouldBe('axContainer.childAtIndex(0).role', '"AXRole: AXHorizontalRule"'); 24 shouldBe('axContainer.childAtIndex(0).role', '"AXRole: AXSplitter"');
25 shouldBe('axContainer.childAtIndex(1).role', '"AXRole: AXParagraph"'); 25 shouldBe('axContainer.childAtIndex(1).role', '"AXRole: AXParagraph"');
26 shouldBe('axContainer.childAtIndex(2).role', '"AXRole: AXLabel"'); 26 shouldBe('axContainer.childAtIndex(2).role', '"AXRole: AXLabel"');
27 shouldBe('axContainer.childAtIndex(3).role', '"AXRole: AXForm"'); 27 shouldBe('axContainer.childAtIndex(3).role', '"AXRole: AXForm"');
28 shouldBe('axContainer.childAtIndex(4).role', '"AXRole: AXDiv"'); 28 shouldBe('axContainer.childAtIndex(4).role', '"AXRole: AXDiv"');
29 } 29 }
30 30
31 </script> 31 </script>
32 32
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/accessibility/chromium-only-roles-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698