menuitem element test

Pass Criteria

Reference

Test mi-001: Menuitem element with type="command"

Code

<div id="menu1" contextmenu="command-menu">I have a number of command menuitems in my context menu. Right click (or equivalent) to test</div>
<menu type="context" id="command-menu">
	<menuitem type="command" label="I’m a command menuitem"></menuitem>
	<menuitem type="command" label="I’m another command menuitem"></menuitem>
</menu>

Test mi-002: Menuitem element with type="checkbox"

Code

<div id="menu2" contextmenu="checkbox-menu">I have a number of checkbox menuitems in my context menu. Right click (or equivalent) to test</div>
<menu type="context" id="checkbox-menu">
	<menuitem type="checkbox" label="I’m a checkbox menuitem" checked></menuitem>
	<menuitem type="checkbox" label="I’m another checkbox menuitem"></menuitem>
</menu>

Test mi-003: Menuitem element with type="radio"

Code

<div id="menu3" contextmenu="radio-menu">I have a number of radio menuitems in my context menu. Right click (or equivalent) to test</div>
<menu type="context" id="radio-menu">
	<menuitem type="radio" radiogroup="radios" label="I’m a radio menuitem" checked></menuitem>
	<menuitem type="radio" radiogroup="radios" label="I’m another radio menuitem"</menuitem>>
</menu>