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

Side by Side Diff: LayoutTests/accessibility/main-element.html

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add forgotten file back Created 7 years, 3 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/main-element-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
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="../fast/js/resources/js-test-pre.js"></script> 4 <script src="../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body id="body"> 6 <body id="body">
7 7
8 <main id="main">main</main> 8 <main id="main">main</main>
9 9
10 <p id="description"></p> 10 <p id="description"></p>
11 <div id="console"></div> 11 <div id="console"></div>
12 12
13 <script> 13 <script>
14 14
15 description("This tests that the HTML5 main element correctly maps to AXLand markMain."); 15 description("This tests that the HTML5 main element correctly maps to AXMain .");
16 16
17 if (window.accessibilityController) { 17 if (window.accessibilityController) {
18 18
19 document.getElementById("body").focus(); 19 document.getElementById("body").focus();
20 var body = accessibilityController.focusedElement; 20 var body = accessibilityController.focusedElement;
21 var main = accessibilityController.accessibleElementById("main"); 21 var main = accessibilityController.accessibleElementById("main");
22 shouldBe("main.role", "'AXRole: AXLandmarkMain'"); 22 shouldBe("main.role", "'AXRole: AXMain'");
23 23
24 } 24 }
25 25
26 </script> 26 </script>
27 27
28 <script src="../fast/js/resources/js-test-post.js"></script> 28 <script src="../fast/js/resources/js-test-post.js"></script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/main-element-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698