| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 </script> | 10 </script> |
| 11 | 11 |
| 12 <p id="description">This test makes sure that adding a selected option to a menu
list via an unusual route (document.write from an external script) doesn't trig
ger a crash when didUpdateActiveOption is called before the children are updated
.</p> | 12 <p id="description">This test makes sure that adding a selected option to a menu
list via an unusual route (document.write from an external script) doesn't trig
ger a crash when didUpdateActiveOption is called before the children are updated
.</p> |
| 13 <div id="console"></div> | 13 <div id="console"></div> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 27 if (window.testRunner && window.accessibilityController) | 27 if (window.testRunner && window.accessibilityController) |
| 28 shouldBe("accessibleMenulist.childAtIndex(0).childrenCount", "2"); | 28 shouldBe("accessibleMenulist.childAtIndex(0).childrenCount", "2"); |
| 29 </script> | 29 </script> |
| 30 <script> | 30 <script> |
| 31 menulist.removeChild(menulist.selectedOptions[0]); | 31 menulist.removeChild(menulist.selectedOptions[0]); |
| 32 if (window.testRunner && window.accessibilityController) | 32 if (window.testRunner && window.accessibilityController) |
| 33 shouldBe("accessibleMenulist.childAtIndex(0).childrenCount", "1"); | 33 shouldBe("accessibleMenulist.childAtIndex(0).childrenCount", "1"); |
| 34 </script> | 34 </script> |
| 35 </select> | 35 </select> |
| 36 | 36 |
| 37 <script src="../../../fast/js/resources/js-test-post.js"></script> | 37 <script src="../fast/js/resources/js-test-post.js"></script> |
| 38 | 38 |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |