| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 5 | 5 |
| 6 <!-- A link always gets its accessible text from contents. --> | 6 <!-- A link always gets its accessible text from contents. --> |
| 7 <a id="link" href="#">A</a> | 7 <a id="link" href="#">A</a> |
| 8 | 8 |
| 9 <!-- A generic focusable div should also get its accessible text from contents.
--> | 9 <!-- A generic focusable div should also get its accessible text from contents.
--> |
| 10 <div id="div" tabindex="0">B</div> | 10 <div id="div" tabindex="0">B</div> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 var div7 = document.getElementById('div7'); | 74 var div7 = document.getElementById('div7'); |
| 75 div7.focus(); | 75 div7.focus(); |
| 76 shouldBe("document.activeElement == div7", "true"); | 76 shouldBe("document.activeElement == div7", "true"); |
| 77 window.axDiv7 = accessibilityController.focusedElement; | 77 window.axDiv7 = accessibilityController.focusedElement; |
| 78 shouldBe("axDiv7.title.indexOf('List item')", "-1"); | 78 shouldBe("axDiv7.title.indexOf('List item')", "-1"); |
| 79 shouldBe("axDiv7.title.indexOf('Initial text before list') >= 0", "true"); | 79 shouldBe("axDiv7.title.indexOf('Initial text before list') >= 0", "true"); |
| 80 } | 80 } |
| 81 | 81 |
| 82 </script> | 82 </script> |
| 83 | 83 |
| 84 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 85 </body> | 84 </body> |
| 86 </html> | 85 </html> |
| OLD | NEW |