OLD | NEW |
1 <script src="../../../resources/js-test.js"></script> | 1 <script src="../../../resources/js-test.js"></script> |
2 <menu type=popup> | 2 <menu type=context> |
3 <menuitem id=mi1 type=checkbox> | 3 <menuitem id=mi1 type=checkbox> |
4 <menuitem id=mi2 type=radio radiogroup="g1" checked> | 4 <menuitem id=mi2 type=radio radiogroup="g1" checked> |
5 <menuitem id=mi3 type=radio radiogroup="g1"> | 5 <menuitem id=mi3 type=radio radiogroup="g1"> |
6 <menuitem id=mi4 type=radio radiogroup="g1"> | 6 <menuitem id=mi4 type=radio radiogroup="g1"> |
7 <menu label="Submenu"> | 7 <menu label="Submenu"> |
8 <menuitem id=_mi1 type=radio radiogroup="g1"> | 8 <menuitem id=_mi1 type=radio radiogroup="g1"> |
9 <menuitem id=_mi2 type=radio radiogroup="g1"> | 9 <menuitem id=_mi2 type=radio radiogroup="g1"> |
10 <menuitem id=_mi3 type=radio radiogroup="g1"> | 10 <menuitem id=_mi3 type=radio radiogroup="g1"> |
11 </menu> | 11 </menu> |
12 <menuitem id=mi5 type=radio radiogroup="g2" checked> | 12 <menuitem id=mi5 type=radio radiogroup="g2" checked> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 mi10.click(); | 63 mi10.click(); |
64 shouldBeFalse('mi9.hasAttribute("checked")'); | 64 shouldBeFalse('mi9.hasAttribute("checked")'); |
65 shouldBeTrue('mi10.hasAttribute("checked")'); | 65 shouldBeTrue('mi10.hasAttribute("checked")'); |
66 // Test that radiogroup attribute is ignored if type is not radio. | 66 // Test that radiogroup attribute is ignored if type is not radio. |
67 var mi11 = document.getElementById('mi11'); | 67 var mi11 = document.getElementById('mi11'); |
68 var mi12 = document.getElementById('mi12'); | 68 var mi12 = document.getElementById('mi12'); |
69 mi11.click(); | 69 mi11.click(); |
70 shouldBeTrue('mi11.hasAttribute("checked")'); | 70 shouldBeTrue('mi11.hasAttribute("checked")'); |
71 shouldBeFalse('mi12.hasAttribute("checked")'); | 71 shouldBeFalse('mi12.hasAttribute("checked")'); |
72 </script> | 72 </script> |
OLD | NEW |