| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| var successfullyParsed = false; |
| <script src="../../resources/js-test-pre.js"></script> |
| <div><a href="#">text line</a><img alt="" width=1 height=10 src=""><a href="#">text line</a></div> |
| description("This test ensures that when asking for a line of text, we do not include objects that should be ignored. The image in this example should not appear so the array of elements should be size of 2."); |
| if (window.accessibilityController) { |
| var obj = accessibilityController.rootElement; |
| var array = obj.elementsForRange(0, 16); |
| shouldBe("array.length", "2"); |
| successfullyParsed = true; |
| <script src="../../resources/js-test-post.js"></script> |