Improve some LayoutTests/inspector flakey output for tests with InspectorTest.reloadPage
[WebKit-https.git] / LayoutTests / accessibility / ios-simulator / table-cell-ranges.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 <table border=1>
14 <tr><th>header 1</th><th>header 2</th><th tabindex=0 id="header">header 3</th></tr>
15 <tr><td>cell 1</td><td colspan=2><div role="button" id="cell2" tabindex=0>cell</div> 2</td></tr>
16 <tr><td>cell 4</td><td>cell 5</td><td>cell <div role="button" id="cell6" tabindex=0>6</div></td></tr>
17
18 <p id="description"></p>
19 <div id="console"></div>
20
21 <script>
22
23     description("This test makes sure that elements within tables cells return the correct row, col ranges");
24
25     if (window.accessibilityController) {
26
27         document.getElementById("cell2").focus();
28         var cell2 = accessibilityController.focusedElement;
29         shouldBe("cell2.rowIndexRange()", "'{1, 1}'");
30         shouldBe("cell2.columnIndexRange()", "'{1, 2}'");
31
32         document.getElementById("cell6").focus();
33         var cell6 = accessibilityController.focusedElement;
34         shouldBe("cell6.rowIndexRange()", "'{2, 1}'");
35         shouldBe("cell6.columnIndexRange()", "'{2, 1}'");
36     }
37
38     successfullyParsed = true;
39 </script>
40
41 <script src="../../resources/js-test-post.js"></script>
42
43 </body>
44 </html>
45