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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/link-inside-button-accessible-text.html

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 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 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 <div id="content"> 7 <div id="content">
8 <div role="button" id="button1"> 8 <div role="button" id="button1">
9 <a href="#">foo1</a> 9 <a href="#">foo1</a>
10 </div> 10 </div>
11 <button id="button2"> 11 <button id="button2">
12 <a href="#">foo2</a> 12 <a href="#">foo2</a>
13 </button> 13 </button>
14 </div> 14 </div>
15 <div id="console"></div> 15 <div id="console"></div>
16 <script> 16 <script>
17 if (window.testRunner) 17 if (window.testRunner)
18 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
19 19
20 description("This tests that when a link is inside a button, its visible tex t is still available for the button."); 20 description("This tests that when a link is inside a button, its visible tex t is still available for the button.");
21 if (window.accessibilityController) { 21 if (window.accessibilityController) {
22 var button1 = accessibilityController.accessibleElementById("button1") ; 22 var button1 = accessibilityController.accessibleElementById("button1") ;
23 shouldBe("button1.deprecatedTitle", "'AXTitle: foo1'"); 23 shouldBe("button1.name", "'foo1'");
24 var button2 = accessibilityController.accessibleElementById("button2") ; 24 var button2 = accessibilityController.accessibleElementById("button2") ;
25 shouldBe("button2.deprecatedTitle", "'AXTitle: foo2'"); 25 shouldBe("button2.name", "'foo2'");
26 document.getElementById("content").style.visibility = 'hidden'; 26 document.getElementById("content").style.visibility = 'hidden';
27 } 27 }
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698