| OLD | NEW |
| 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> |
| OLD | NEW |