| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script> |
| var successfullyParsed = false; |
| </script> |
| <script src="../../resources/js-test-pre.js"></script> |
| </head> |
| <body id="body" tabindex="0"> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <div role="textbox" id="iframeGroup"></div> |
| |
| <script> |
| |
| description("This tests that a scroll area will return scroll bars when asked."); |
| |
| if (window.accessibilityController) { |
| document.getElementById("body").focus(); |
| var body = accessibilityController.focusedElement; |
| } |
| |
| // Cause the web page to gain scrollbars. |
| for (var k = 0; k < 100; k++) { |
| document.getElementById("body").innerHTML += "<br><br><br>"; |
| } |
| |
| if (window.accessibilityController) { |
| document.getElementById("body").focus(); |
| var body = accessibilityController.focusedElement; |
| |
| var scrollArea = body.parentElement(); |
| shouldBe("scrollArea.role", "'AXRole: AXScrollArea'"); |
| shouldBe("scrollArea.verticalScrollbar.role", "'AXRole: AXScrollBar'"); |
| } |
| |
| successfullyParsed = true; |
| </script> |
| |
| <script src="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |