Improve some LayoutTests/inspector flakey output for tests with InspectorTest.reloadPage
[WebKit-https.git] / LayoutTests / accessibility / ios-simulator / text-marker-validation.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 <script>
6 var successfullyParsed = false;
7 </script>
8 </head>
9 <body>
10
11 <div id="element1">element 1</div>
12 <div id="element2">element 2</div>
13 <div id="element3">element 3</div>
14 <div id="element4">element 4</div>
15
16 <p id="description"></p>
17 <div id="console"></div>
18
19 <script>
20
21     description("This test ensures that a text range can be found for an element within a web page. ");
22
23     if (window.accessibilityController) {
24
25         var obj = accessibilityController.accessibleElementById("element3");
26
27         var textPos = obj.elementTextPosition;
28         var textLen = obj.elementTextLength;
29
30         var succeeded = textPos == 20 && textLen == 9;
31         shouldBe("succeeded", "true");
32     }
33
34     successfullyParsed = true;
35 </script>
36
37 <script src="../../resources/js-test-post.js"></script>
38
39 </body>
40 </html>
41