| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <script src="../resources/accessibility-helper.js"></script> | |
| <script src="../resources/js-test.js"></script> | |
| </head> | |
| <body> | |
| <div id="text" tabindex="0">text block</div> | |
| <script> | |
| var output = "This tests basic LengthForTextMarkerRange.\n\n"; | |
| if (window.accessibilityController) { | |
| var root = accessibilityController.rootElement; | |
| var textMarkerRange = root.textMarkerRangeForElement(accessibilityController.accessibleElementById("text")); | |
| output += expect("root.textMarkerRangeLength(textMarkerRange)", "10"); | |
| debug(output); | |
| } | |
| </script> | |
| </body> | |
| </html> | |