| OLD | NEW |
| 1 <html> | 1 <html> |
| 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 <input type="image" alt="Submit" src="resources/cake.png" width=100 height=1
00 id="image1"> | 8 <input type="image" alt="Submit" src="resources/cake.png" width=100 height=1
00 id="image1"> |
| 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 if (window.accessibilityController) { | 14 if (window.accessibilityController) { |
| 15 description("This test makes sure that an input image returns its al
t tag as the description"); | 15 description("This test makes sure that an input image returns its al
t tag as the description"); |
| 16 | 16 |
| 17 var image1 = document.getElementById("image1").focus(); | 17 var image1 = document.getElementById("image1").focus(); |
| 18 var img = accessibilityController.focusedElement; | 18 var img = accessibilityController.focusedElement; |
| 19 | 19 |
| 20 shouldBe("img.description", "'AXDescription: Submit'"); | 20 shouldBe("img.description", "'AXDescription: Submit'"); |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 | 23 |
| 24 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 25 | 24 |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |