| OLD | NEW |
| (Empty) |
| 1 <head> | |
| 2 <script src="../fast/js/resources/js-test-pre.js"></script> | |
| 3 </head> | |
| 4 <body id="body"> | |
| 5 | |
| 6 <iframe id='iframe1' scrolling=YES width=100 height=100 border=1 src='resou
rces/cake.png'></iframe> | |
| 7 | |
| 8 <p id="description"></p> | |
| 9 <div id="console"></div> | |
| 10 | |
| 11 <script> | |
| 12 | |
| 13 description("This test makes sure that the AX parent chain hierarchy with if
rames is correct"); | |
| 14 | |
| 15 if (window.accessibilityController) { | |
| 16 | |
| 17 var body = document.getElementById("body"); | |
| 18 body.focus(); | |
| 19 var webArea = accessibilityController.focusedElement; | |
| 20 | |
| 21 var group1 = webArea.childAtIndex(0); | |
| 22 var iframeScrollArea = group1.childAtIndex(0); | |
| 23 var iframeWebArea = iframeScrollArea.childAtIndex(0); | |
| 24 | |
| 25 var parentIframeWebArea = iframeWebArea.parentElement(); | |
| 26 var parentIframeScrollArea = parentIframeWebArea.parentElement(); | |
| 27 var parentGroup1 = parentIframeScrollArea.parentElement(); | |
| 28 | |
| 29 shouldBe("parentIframeWebArea.isEqual(iframeScrollArea)", "true"); | |
| 30 shouldBe("parentIframeScrollArea.isEqual(group1)", "true"); | |
| 31 shouldBe("parentGroup1.isEqual(webArea)", "true"); | |
| 32 } | |
| 33 | |
| 34 </script> | |
| 35 | |
| 36 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 37 </body> | |
| 38 </html> | |
| OLD | NEW |