| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
| 4 </head> | 4 </head> |
| 5 <script> | 5 <script> |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 </script> | 8 </script> |
| 9 <body id="body"> | 9 <body id="body"> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 <p id="description"></p> | 21 <p id="description"></p> |
| 22 <div id="console"></div> | 22 <div id="console"></div> |
| 23 | 23 |
| 24 <script> | 24 <script> |
| 25 description("This tests that you can reach the links within an image map
."); | 25 description("This tests that you can reach the links within an image map
."); |
| 26 | 26 |
| 27 if (window.accessibilityController) { | 27 if (window.accessibilityController) { |
| 28 document.getElementById("body").focus(); | 28 document.getElementById("body").focus(); |
| 29 | 29 |
| 30 var body = accessibilityController.focusedElement; | 30 var body = accessibilityController.focusedElement; |
| 31 shouldBe("body.childAtIndex(0).role", "'AXRole: AXLink'"); | 31 shouldBe("body.childAtIndex(3).role", "'AXRole: AXLink'"); |
| 32 shouldBe("body.childAtIndex(0).title", "'AXTitle: Link1'"); | 32 shouldBe("body.childAtIndex(3).title", "'AXTitle: Link1'"); |
| 33 | 33 |
| 34 shouldBe("body.childAtIndex(1).role", "'AXRole: AXLink'"); | 34 shouldBe("body.childAtIndex(4).role", "'AXRole: AXLink'"); |
| 35 shouldBe("body.childAtIndex(1).title", "'AXTitle: Link2'"); | 35 shouldBe("body.childAtIndex(4).title", "'AXTitle: Link2'"); |
| 36 | 36 |
| 37 shouldBe("body.childAtIndex(2).role", "'AXRole: AXLink'"); | 37 shouldBe("body.childAtIndex(5).role", "'AXRole: AXLink'"); |
| 38 shouldBe("body.childAtIndex(2).title", "'AXTitle: Link3'"); | 38 shouldBe("body.childAtIndex(5).title", "'AXTitle: Link3'"); |
| 39 } | 39 } |
| 40 </script> | 40 </script> |
| 41 | 41 |
| 42 </body> | 42 </body> |
| 43 </html> | 43 </html> |
| OLD | NEW |