OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 <iframe id=frame></iframe> | 4 <iframe id=frame></iframe> |
5 <script> | 5 <script> |
6 description('Test if destructing a documet with radio groups with the same name
doesn\'t crash.'); | 6 description('Test if destructing a documet with radio groups with the same name
doesn\'t crash.'); |
7 var frame =document.getElementById('frame'); | 7 var frame =document.getElementById('frame'); |
8 frame.contentDocument.body.innerHTML = '<input type=radio name=group1 checked>'
+ | 8 frame.contentDocument.body.innerHTML = '<input type=radio name=group1 checked>'
+ |
9 '<form><input type=radio name=group1 checked></form>'; | 9 '<form><input type=radio name=group1 checked></form>'; |
10 document.body.removeChild(frame); | 10 document.body.removeChild(frame); |
11 frame = null; | 11 frame = null; |
12 gc(); | 12 gc(); |
13 debug('PASS if not crashed.'); | 13 debug('PASS if not crashed.'); |
14 </script> | 14 </script> |
15 </body> | 15 </body> |
OLD | NEW |