| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script> |
| var successfullyParsed = false; |
| </script> |
| <script src="../../resources/js-test-pre.js"></script> |
| </head> |
| <body id="body"> |
| |
| <ol id="list"> |
| <li>item 1</li> |
| </ol> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| |
| description("This test ensures that when asking for the string for a range, it includes the list item marker"); |
| |
| if (window.accessibilityController) { |
| |
| var obj = accessibilityController.accessibleElementById("list"); |
| var text = obj.stringForRange(0, 6); |
| shouldBe("text", "'1. item 1'"); |
| } |
| |
| successfullyParsed = true; |
| </script> |
| |
| <script src="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |
| |