Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / destroy-selected-radio-button-crash.html
blob8b1ff12fbe9b841447919a4e07b66a9ebdd34695
1 <html>
2 <script>
3 function runTest() {
4 if (window.testRunner)
5 testRunner.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>