textbox_placeholder-manual.html (3433B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>textbox placeholder</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_ENTRY" 25 ], 26 [ 27 "property", 28 "interfaces", 29 "contains", 30 "EditableText" 31 ], 32 [ 33 "property", 34 "states", 35 "contains", 36 "STATE_SINGLE_LINE" 37 ], 38 [ 39 "property", 40 "objectAttributes", 41 "contains", 42 "placeholder-text:DD/MM/YYYY" 43 ] 44 ], 45 "AXAPI" : [ 46 [ 47 "property", 48 "AXRole", 49 "is", 50 "AXTextField" 51 ], 52 [ 53 "property", 54 "AXSubrole", 55 "is", 56 "<nil>" 57 ], 58 [ 59 "property", 60 "AXRoleDescription", 61 "is", 62 "text field" 63 ], 64 [ 65 "property", 66 "AXPlaceholderValue", 67 "is", 68 "DD/MM/YYYY" 69 ] 70 ], 71 "IAccessible2" : [ 72 [ 73 "property", 74 "role", 75 "is", 76 "ROLE_SYSTEM_TEXT" 77 ], 78 [ 79 "property", 80 "states", 81 "doesNotContain", 82 "IA2_STATE_SINGLE_LINE" 83 ], 84 [ 85 "property", 86 "objectAttributes", 87 "contains", 88 "placeholder-text:DD/MM/YYYY" 89 ] 90 ], 91 "MSAA" : [ 92 [ 93 "property", 94 "role", 95 "is", 96 "ROLE_SYSTEM_TEXT" 97 ] 98 ], 99 "UIA" : [ 100 [ 101 "property", 102 "ControlType", 103 "is", 104 "Edit" 105 ], 106 [ 107 "result", 108 "AriaProperties.placeholder", 109 "is", 110 "DD/MM/YYYY" 111 ] 112 ] 113 }, 114 "title" : "step 1", 115 "type" : "test" 116 } 117 ], 118 "title" : "textbox placeholder" 119 } 120 121 ) ; 122 </script> 123 </head> 124 <body> 125 <p>This test examines the ARIA properties for textbox placeholder.</p> 126 <div contenteditable="true" role="textbox" aria-placeholder="DD/MM/YYYY" id="test"> 127 "DD/MM/YYYY" 128 </div> 129 130 <div id="manualMode"></div> 131 <div id="log"></div> 132 <div id="ATTAmessages"></div> 133 </body> 134 </html>