OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../resources/js-test.js"></script> |
| 4 <style> |
| 5 h1:first-letter { |
| 6 text-transform:uppercase; |
| 7 } |
| 8 </style> |
| 9 </head> |
| 10 <body> |
| 11 |
| 12 <h1 id="heading"> |
| 13 heading |
| 14 </h1> |
| 15 |
| 16 <p id="description"></p> |
| 17 <div id="console"></div> |
| 18 |
| 19 <script> |
| 20 description("Makes sure that accessing the word boundaries of an AXStaticText ob
ject doesn't cause a crash when it has an inline text box of length zero."); |
| 21 if (window.accessibilityController) { |
| 22 var axHeading = accessibilityController.accessibleElementById('heading'); |
| 23 var axStaticText = axHeading.childAtIndex(0); |
| 24 debug('Word start for index -1: ' + axStaticText.wordStart(-1)); |
| 25 } |
| 26 </script> |
| 27 </body> |
| 28 </html> |
OLD | NEW |