2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / destroy-selected-radio-button-crash.html
blob04b65a6fca8ef38ab320a6c311535f85e62ae855
1 <html>
2 <script>
3 function runTest() {
4 if (window.layoutTestController)
5 layoutTestController.dumpAsText();
7 document.getElementById('container').innerHTML = '';
8 document.getElementById('radio').checked = true;
10 </script>
11 <body onload="runTest()">
12 <div>This tests that destroying a checked radio button that does not have a form correctly removes the radio button element from the checked radio buttons map. This test should ideally be run with GuardMalloc or a similar memory checker.</div>
13 <div>SUCCESS - Didn't crash!</div>
14 <div id="container"><input name="a" type="radio" checked></div>
15 <input name="a" id="radio" type="radio">
16 </body>
17 </html>