menuitemcheckbox_readonly_true-manual.html (3315B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>menuitemcheckbox readonly true</title> 5 <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> 6 <link rel="stylesheet" href="/wai-aria/scripts/manual.css"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="/wai-aria/scripts/ATTAcomm.js"></script> 10 <script> 11 setup({explicit_timeout: true, explicit_done: true }); 12 13 var theTest = new ATTAcomm( 14 { 15 "steps" : [ 16 { 17 "element" : "test", 18 "test" : { 19 "ATK" : [ 20 [ 21 "property", 22 "role", 23 "is", 24 "ROLE_CHECK_MENU_ITEM" 25 ], 26 [ 27 "property", 28 "states", 29 "contains", 30 "STATE_READ_ONLY" 31 ] 32 ], 33 "AXAPI" : [ 34 [ 35 "property", 36 "AXRole", 37 "is", 38 "AXMenuItem" 39 ], 40 [ 41 "property", 42 "AXSubrole", 43 "is", 44 "<nil>" 45 ], 46 [ 47 "property", 48 "AXRoleDescription", 49 "is", 50 "menu item" 51 ], 52 [ 53 "result", 54 "AXUIElementIsAttributeSettable(AXValue)", 55 "is", 56 "false" 57 ] 58 ], 59 "IAccessible2" : [ 60 [ 61 "property", 62 "role", 63 "is", 64 "IA2_ROLE_CHECK_MENU_ITEM" 65 ], 66 [ 67 "property", 68 "states", 69 "contains", 70 "IA2_STATE_EDITABLE" 71 ] 72 ], 73 "MSAA" : [ 74 [ 75 "property", 76 "role", 77 "isAny", 78 "[ROLE_SYSTEM_CHECKBUTTON, ROLE_SYSTEM_MENUITEM]" 79 ], 80 [ 81 "property", 82 "states", 83 "contains", 84 "STATE_SYSTEM_READONLY" 85 ] 86 ], 87 "UIA" : [ 88 [ 89 "property", 90 "ControlType", 91 "is", 92 "MenuItem" 93 ], 94 [ 95 "property", 96 "controlPatterns", 97 "contains", 98 "Toggle" 99 ], 100 [ 101 "property", 102 "Value.IsReadOnly", 103 "is", 104 "true" 105 ] 106 ] 107 }, 108 "title" : "step 1", 109 "type" : "test" 110 } 111 ], 112 "title" : "menuitemcheckbox readonly true" 113 } 114 115 ) ; 116 </script> 117 </head> 118 <body> 119 <p>This test examines the ARIA properties for menuitemcheckbox readonly true.</p> 120 <div role="menu"> 121 <div role="menuitemcheckbox" aria-readonly="true" id="test">option 1</div> 122 </div> 123 124 <div id="manualMode"></div> 125 <div id="log"></div> 126 <div id="ATTAmessages"></div> 127 </body> 128 </html>