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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/image-map2.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 <html> 1 <html>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 </script> 5 </script>
6 <body id="body"> 6 <body id="body">
7 7
8 <div id="result"></div> 8 <div id="result"></div>
9 9
10 <!-- Test image map --> 10 <!-- Test image map -->
11 <map id="apple" name="imagemap1"> 11 <map id="apple" name="imagemap1">
12 <area shape="rect" coords="10,10,133,72" href="http://www.apple.com" alt=" Link1" /> 12 <area shape="rect" coords="10,10,133,72" href="http://www.apple.com" alt=" Link1" />
13 <area shape="rect" coords="12,74,134,88" href="http://www.apple.com" alt=" Link2" /> 13 <area shape="rect" coords="12,74,134,88" href="http://www.apple.com" alt=" Link2" />
14 </map> 14 </map>
15 15
16 <img src="resources/cake.png" border="0" align="left" usemap="#imagemap1" v space="1"> 16 <img src="resources/cake.png" border="0" align="left" usemap="#imagemap1" v space="1">
17 17
18 18
19 <script> 19 <script>
20 if (window.accessibilityController) { 20 if (window.accessibilityController) {
21 var result = document.getElementById("result"); 21 var result = document.getElementById("result");
22 22
23 var body = document.getElementById("body"); 23 var body = document.getElementById("body");
24 body.focus(); 24 body.focus();
25 result.innerText += "Image map - test 2 - 2 Links (alt tags)\n"; 25 result.innerText += "Image map - test 2 - 2 Links (alt tags)\n";
26 result.innerText += "----------------------\n"; 26 result.innerText += "----------------------\n";
27 result.innerText += accessibilityController.focusedElement.attribute sOfChildren() + "\n\n"; 27 result.innerText += accessibilityController.focusedElement.attribute sOfChildren() + "\n\n";
28 } 28 }
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698