Improve some LayoutTests/inspector flakey output for tests with InspectorTest.reloadPage
[WebKit-https.git] / LayoutTests / accessibility / ios-simulator / internal-link.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 if (window.testRunner)
8    testRunner.dumpAsText();
9 </script>
10 </head>
11 <body>
12
13 <a href="#name1" id="name">Name</a>
14
15 <BR><BR><BR><BR>
16 <BR><BR><BR>
17 <a name="name1">Linked Element</a>
18
19
20 <p id="description"></p>
21 <div id="console"></div>
22
23 <script>
24
25     description("This test thats internal links return their linked elements");
26
27     if (window.accessibilityController) {
28
29         document.getElementById("name").focus();
30         var link = accessibilityController.focusedElement;
31         shouldBe("link.linkedElement().description", "'AXLabel: Linked Element'");
32     }
33
34     successfullyParsed = true;
35 </script>
36
37 <script src="../../resources/js-test-post.js"></script>
38
39 </body>
40 </html>
41