tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / platform / mac / accessibility / text-marker-length.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div id="text" tabindex="0">text block</div>
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests the text marker implemention of DRT is working by returning a marker range and by returning its correct length.");
16
17     if (window.accessibilityController) {
18
19           document.getElementById("text").focus();
20           var text = accessibilityController.focusedElement;
21           var textMarkerRange = text.textMarkerRangeForElement(text);
22           shouldBe("text.textMarkerRangeLength(textMarkerRange)", "10");
23     }
24
25 </script>
26
27 <script src="../../../fast/js/resources/js-test-post.js"></script>
28 </body>
29 </html>