OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <script> | 3 <script> |
4 description('Radio buttons within the same form outside a document should still
be updated appropriately when one of them is checked.'); | 4 description('Radio buttons within the same form outside a document should still
be updated appropriately when one of them is checked.'); |
5 | 5 |
6 var form = document.createElement('form'); | 6 var form = document.createElement('form'); |
7 var radio1 = form.appendChild(document.createElement('input')); | 7 var radio1 = form.appendChild(document.createElement('input')); |
8 var radio2 = form.appendChild(document.createElement('input')); | 8 var radio2 = form.appendChild(document.createElement('input')); |
9 radio1.type = radio2.type = 'radio'; | 9 radio1.type = radio2.type = 'radio'; |
10 radio1.name = radio2.name = 'pref'; | 10 radio1.name = radio2.name = 'pref'; |
11 radio1.checked = true; | 11 radio1.checked = true; |
12 radio2.checked = true; | 12 radio2.checked = true; |
13 shouldBeFalse('radio1.checked'); | 13 shouldBeFalse('radio1.checked'); |
14 </script> | 14 </script> |
OLD | NEW |