| <script src="../resources/js-test-pre.js"></script> |
| if (window.testRunner && window.accessibilityController) { |
| description("This tests that we don't get a crash when trying to retrieve textual information for a heading after hiding it."); |
| var heading = document.getElementById("heading"); |
| var axHeading = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0); |
| heading.style.display = 'none'; |
| // Forcing a retrieval of text associated to the object |
| // should not crash after hiding the heading. |
| <script src="../resources/js-test-post.js"></script> |