1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
8 <div id="text" tabindex="0">text block</div>
10 <p id="description"></p>
11 <div id="console"></div>
15 description("This tests the text marker implemention of DRT is working by returning a marker range and by returning its correct length.");
17 if (window.accessibilityController) {
19 document.getElementById("text").focus();
20 var text = accessibilityController.focusedElement;
21 var textMarkerRange = text.textMarkerRangeForElement(text);
22 shouldBe("text.textMarkerRangeLength(textMarkerRange)", "10");
27 <script src="../../../fast/js/resources/js-test-post.js"></script>