| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <input type="range" id="slider" value="50" min="25" max="75"> |
| description("This tests that accessing the min/max value of a detached ax object won't cause crash."); |
| if (window.accessibilityController) { |
| var sliderObj = accessibilityController.accessibleElementById("slider"); |
| shouldBe("sliderObj.minValue", "25"); |
| var slider = document.getElementById("slider"); |
| slider.parentNode.removeChild(slider); |
| // Make sure it won't crash |
| shouldBe("sliderObj.minValue", "0"); |
| <script src="../../resources/js-test-post.js"></script> |