button_haspopup_dialog-manual.html (3308B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>button haspopup dialog</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_PUSH_BUTTON" 25 ], 26 [ 27 "property", 28 "objectAttributes", 29 "contains", 30 "haspopup:dialog" 31 ], 32 [ 33 "property", 34 "states", 35 "contains", 36 "STATE_HAS_POPUP" 37 ] 38 ], 39 "AXAPI" : [ 40 [ 41 "property", 42 "AXRole", 43 "is", 44 "AXPopUpButton" 45 ], 46 [ 47 "property", 48 "AXSubrole", 49 "is", 50 "<nil>" 51 ], 52 [ 53 "property", 54 "AXRoleDescription", 55 "is", 56 "pop up button" 57 ], 58 [ 59 "property", 60 "actions", 61 "contains", 62 "AXShowMenu" 63 ] 64 ], 65 "IAccessible2" : [ 66 [ 67 "property", 68 "role", 69 "is", 70 "ROLE_SYSTEM_PUSHBUTTON" 71 ], 72 [ 73 "property", 74 "objectAttributes", 75 "contains", 76 "haspopup:dialog" 77 ] 78 ], 79 "MSAA" : [ 80 [ 81 "property", 82 "role", 83 "is", 84 "ROLE_SYSTEM_PUSHBUTTON" 85 ], 86 [ 87 "property", 88 "states", 89 "contains", 90 "STATE_SYSTEM_HASPOPUP" 91 ] 92 ], 93 "UIA" : [ 94 [ 95 "property", 96 "IUIAutomationElement.ControlType", 97 "is", 98 "Button" 99 ], 100 [ 101 "property", 102 "controlPatterns", 103 "contains", 104 "ExpandCollapse" 105 ] 106 ] 107 }, 108 "title" : "step 1", 109 "type" : "test" 110 } 111 ], 112 "title" : "button haspopup dialog" 113 } 114 115 ) ; 116 </script> 117 </head> 118 <body> 119 <p>This test examines the ARIA properties for button haspopup dialog.</p> 120 <div id="test" role="button" aria-haspopup="dialog"> 121 OK 122 </div> 123 <div role="dialog"> 124 This is the dialog box 125 </div> 126 127 128 <div id="manualMode"></div> 129 <div id="log"></div> 130 <div id="ATTAmessages"></div> 131 </body> 132 </html>