| <html> |
| <head> |
| <script src="../../resources/js-test.js"></script> |
| <script src="../../resources/accessibility-helper.js"></script> |
| </head> |
| <body id="body"> |
| |
| <input id="range1" type="range"> |
| |
| <script> |
| |
| var output = "This tests that getting the indicator's value from a removed slider won't cause crash.\n\n"; |
| var indicator; |
| |
| if (window.accessibilityController) { |
| window.jsTestIsAsync = true; |
| var range = accessibilityController.accessibleElementById("range1"); |
| indicator = range.childAtIndex(0); |
| |
| // Remove the slider, make sure we getting value from the indicator won't cause crash. |
| var rangeElement = document.getElementById("range1"); |
| document.body.removeChild(rangeElement); |
| setTimeout(async function() { |
| output += await expectAsync("indicator.intValue", "0"); |
| debug(output); |
| finishJSTest(); |
| }, 0); |
| } |
| |
| </script> |
| |
| </body> |
| </html> |