<!doctype html>
<html>
  <head>
    <title>menuitemcheckbox posinset and setsize</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="/wai-aria/scripts/ATTAcomm.js"></script>
    <script>
    setup({explicit_timeout: true, explicit_done: true });

    var theTest = new ATTAcomm(
    {
   "steps" : [
      {
         "element" : "test",
         "test" : {
            "ATK" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_CHECK_MENU_ITEM"
               ],
               [
                  "property",
                  "states",
                  "contains",
                  "STATE_CHECKABLE"
               ],
               [
                  "property",
                  "states",
                  "contains",
                  "STATE_CHECKED"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "posinset:4"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "setsize:8"
               ]
            ],
            "AXAPI" : [
               [
                  "property",
                  "AXRole",
                  "is",
                  "AXMenuItem"
               ],
               [
                  "property",
                  "AXSubrole",
                  "is",
                  "<nil>"
               ],
               [
                  "property",
                  "AXRoleDescription",
                  "is",
                  "menu item"
               ],
               [
                  "property",
                  "AXValue",
                  "is",
                  "1"
               ],
               [
                  "property",
                  "AXARIAPosInSet",
                  "is",
                  "4"
               ],
               [
                  "property",
                  "AXARIASetSize",
                  "is",
                  "8"
               ]
            ],
            "IAccessible2" : [
               [
                  "property",
                  "role",
                  "is",
                  "IA2_ROLE_CHECK_MENU_ITEM"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "checkable:true"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "posinset:4"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "setsize:8"
               ],
               [
                  "property",
                  "groupPosition",
                  "contains",
                  "similarItemsInGroup:8"
               ],
               [
                  "property",
                  "groupPosition",
                  "contains",
                  "positionInGroup:4"
               ]
            ],
            "MSAA" : [
               [
                  "property",
                  "role",
                  "isAny",
                  "[ROLE_SYSTEM_MENUITEM, ROLE_SYSTEM_CHECKBUTTON]"
               ]
            ],
            "UIA" : [
               [
                  "property",
                  "ControlType",
                  "is",
                  "MenuItem"
               ],
               [
                  "property",
                  "Toggle.ToggleState",
                  "is",
                  "On"
               ],
               [
                  "property",
                  "AriaProperties.posinset",
                  "is",
                  "4"
               ],
               [
                  "property",
                  "AriaProperties.setsize",
                  "is",
                  "8"
               ]
            ]
         },
         "title" : "step 1",
         "type" : "test"
      }
   ],
   "title" : "menuitemcheckbox posinset and setsize"
}

    ) ;
    </script>
  </head>
  <body>
  <p>This test examines the ARIA properties for menuitemcheckbox posinset and setsize.</p>
    <ul role='menu'>Menu
    <li role='menuitem'> option 1</li>
    <li role='menuitemcheckbox' id='test' aria-posinset='4' aria-setsize='8'
        class='ckbox' aria-checked='true'>panda doodles</li>
    <li role='menuitem'> option 3</li>
  </ul>

  <div id="manualMode"></div>
  <div id="log"></div>
  <div id="ATTAmessages"></div>
  </body>
</html>
