Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt

Issue 1739613002: DevTools: validate protocol input parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined a test. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Non-hidden div for comparison 1 Non-hidden div for comparison
2 non-hidden treeitem 2 non-hidden treeitem
3 hidden non-treeitem 3 hidden non-treeitem
4 Buttons are leaf nodes 4 Buttons are leaf nodes
5 Descendant of aria-hidden node 5 Descendant of aria-hidden node
6 6
7 List item also presentational 7 List item also presentational
8 Div in list isn't presentational 8 Div in list isn't presentational
9 Content within label refers to label container 9 Content within label refers to label container
10 #_1: { 10 #_1: {
11 "id": "<int>", 11 "id": "<int>",
12 "result": { 12 "result": {
13 "accessibilityNode": { 13 "accessibilityNode": {
14 "nodeId": "<string>", 14 "nodeId": "<string>",
15 "ignored": false, 15 "ignored": false,
16 "role": { 16 "role": {
17 "type": "internalRole", 17 "type": "internalRole",
18 "value": "Div" 18 "value": "Div"
19 }, 19 },
20 "properties": [],
21 "name": { 20 "name": {
22 "type": "computedString", 21 "type": "computedString",
23 "value": "", 22 "value": "",
24 "sources": [ 23 "sources": [
25 { 24 {
26 "type": "relatedElement", 25 "type": "relatedElement",
27 "attribute": "aria-labelledby" 26 "attribute": "aria-labelledby"
28 }, 27 },
29 { 28 {
30 "type": "attribute", 29 "type": "attribute",
31 "attribute": "aria-label" 30 "attribute": "aria-label"
32 }, 31 },
33 { 32 {
34 "type": "attribute", 33 "type": "attribute",
35 "attribute": "title" 34 "attribute": "title"
36 } 35 }
37 ] 36 ]
38 } 37 },
38 "properties": []
39 } 39 }
40 } 40 }
41 } 41 }
42 #_2: { 42 #_2: {
43 "id": "<int>", 43 "id": "<int>",
44 "result": { 44 "result": {
45 "accessibilityNode": { 45 "accessibilityNode": {
46 "nodeId": "<string>", 46 "nodeId": "<string>",
47 "ignored": false, 47 "ignored": false,
48 "role": { 48 "role": {
49 "type": "role", 49 "type": "role",
50 "value": "treeitem" 50 "value": "treeitem"
51 }, 51 },
52 "name": {
53 "type": "computedString",
54 "value": "",
55 "sources": [
56 {
57 "type": "relatedElement",
58 "attribute": "aria-labelledby"
59 },
60 {
61 "type": "attribute",
62 "attribute": "aria-label"
63 },
64 {
65 "type": "attribute",
66 "attribute": "title"
67 }
68 ]
69 },
52 "properties": [ 70 "properties": [
53 { 71 {
54 "name": "level", 72 "name": "level",
55 "value": { 73 "value": {
56 "type": "integer", 74 "type": "integer",
57 "value": 1 75 "value": 1
58 } 76 }
59 }, 77 },
60 { 78 {
61 "name": "checked", 79 "name": "checked",
62 "value": { 80 "value": {
63 "type": "tristate", 81 "type": "tristate",
64 "value": "false" 82 "value": "false"
65 } 83 }
66 }, 84 },
67 { 85 {
68 "name": "selected", 86 "name": "selected",
69 "value": { 87 "value": {
70 "type": "boolean", 88 "type": "boolean",
71 "value": false 89 "value": false
72 } 90 }
73 } 91 }
74 ], 92 ]
75 "name": {
76 "type": "computedString",
77 "value": "",
78 "sources": [
79 {
80 "type": "relatedElement",
81 "attribute": "aria-labelledby"
82 },
83 {
84 "type": "attribute",
85 "attribute": "aria-label"
86 },
87 {
88 "type": "attribute",
89 "attribute": "title"
90 }
91 ]
92 }
93 } 93 }
94 } 94 }
95 } 95 }
96 #_3: { 96 #_3: {
97 "id": "<int>", 97 "id": "<int>",
98 "result": { 98 "result": {
99 "accessibilityNode": { 99 "accessibilityNode": {
100 "nodeId": "<string>", 100 "nodeId": "<string>",
101 "ignored": true, 101 "ignored": true,
102 "role": {
103 "type": "internalRole",
104 "value": "Div"
105 },
106 "ignoredReasons": [ 102 "ignoredReasons": [
107 { 103 {
108 "name": "ancestorDisallowsChild", 104 "name": "ancestorDisallowsChild",
109 "value": { 105 "value": {
110 "type": "idref", 106 "type": "idref",
111 "relatedNodes": [ 107 "relatedNodes": [
112 { 108 {
113 "backendNodeId": "<string>" 109 "backendNodeId": "<string>"
114 } 110 }
115 ] 111 ]
116 } 112 }
117 } 113 }
118 ] 114 ],
115 "role": {
116 "type": "internalRole",
117 "value": "Div"
118 }
119 } 119 }
120 } 120 }
121 } 121 }
122 #_4: { 122 #_4: {
123 "id": "<int>", 123 "id": "<int>",
124 "result": { 124 "result": {
125 "accessibilityNode": { 125 "accessibilityNode": {
126 "nodeId": "<string>", 126 "nodeId": "<string>",
127 "ignored": true, 127 "ignored": true,
128 "role": {
129 "type": "internalRole",
130 "value": "SVGRoot"
131 },
132 "ignoredReasons": [ 128 "ignoredReasons": [
133 { 129 {
134 "name": "ancestorDisallowsChild", 130 "name": "ancestorDisallowsChild",
135 "value": { 131 "value": {
136 "type": "idref", 132 "type": "idref",
137 "relatedNodes": [ 133 "relatedNodes": [
138 { 134 {
139 "backendNodeId": "<string>" 135 "backendNodeId": "<string>"
140 } 136 }
141 ] 137 ]
142 } 138 }
143 } 139 }
144 ] 140 ],
141 "role": {
142 "type": "internalRole",
143 "value": "SVGRoot"
144 }
145 } 145 }
146 } 146 }
147 } 147 }
148 #_5: { 148 #_5: {
149 "id": "<int>", 149 "id": "<int>",
150 "result": { 150 "result": {
151 "accessibilityNode": { 151 "accessibilityNode": {
152 "nodeId": "<string>", 152 "nodeId": "<string>",
153 "ignored": true, 153 "ignored": true,
154 "role": {
155 "type": "internalRole",
156 "value": "Unknown"
157 },
158 "ignoredReasons": [ 154 "ignoredReasons": [
159 { 155 {
160 "name": "ancestorIsLeafNode", 156 "name": "ancestorIsLeafNode",
161 "value": { 157 "value": {
162 "type": "idref", 158 "type": "idref",
163 "relatedNodes": [ 159 "relatedNodes": [
164 { 160 {
165 "backendNodeId": "<string>" 161 "backendNodeId": "<string>"
166 } 162 }
167 ] 163 ]
168 } 164 }
169 } 165 }
170 ] 166 ],
167 "role": {
168 "type": "internalRole",
169 "value": "Unknown"
170 }
171 } 171 }
172 } 172 }
173 } 173 }
174 #_6: { 174 #_6: {
175 "id": "<int>", 175 "id": "<int>",
176 "result": { 176 "result": {
177 "accessibilityNode": { 177 "accessibilityNode": {
178 "nodeId": "<string>", 178 "nodeId": "<string>",
179 "ignored": true, 179 "ignored": true,
180 "role": {
181 "type": "internalRole",
182 "value": "Div"
183 },
184 "ignoredReasons": [ 180 "ignoredReasons": [
185 { 181 {
186 "name": "ariaHidden", 182 "name": "ariaHidden",
187 "value": { 183 "value": {
188 "type": "boolean", 184 "type": "boolean",
189 "value": true 185 "value": true
190 } 186 }
191 } 187 }
192 ] 188 ],
189 "role": {
190 "type": "internalRole",
191 "value": "Div"
192 }
193 } 193 }
194 } 194 }
195 } 195 }
196 #_7: { 196 #_7: {
197 "id": "<int>", 197 "id": "<int>",
198 "result": { 198 "result": {
199 "accessibilityNode": { 199 "accessibilityNode": {
200 "nodeId": "<string>", 200 "nodeId": "<string>",
201 "ignored": true, 201 "ignored": true,
202 "role": {
203 "type": "internalRole",
204 "value": "Div"
205 },
206 "ignoredReasons": [ 202 "ignoredReasons": [
207 { 203 {
208 "name": "ariaHiddenRoot", 204 "name": "ariaHiddenRoot",
209 "value": { 205 "value": {
210 "type": "idref", 206 "type": "idref",
211 "relatedNodes": [ 207 "relatedNodes": [
212 { 208 {
213 "backendNodeId": "<string>", 209 "backendNodeId": "<string>",
214 "idref": "_6" 210 "idref": "_6"
215 } 211 }
216 ] 212 ]
217 } 213 }
218 } 214 }
219 ] 215 ],
216 "role": {
217 "type": "internalRole",
218 "value": "Div"
219 }
220 } 220 }
221 } 221 }
222 } 222 }
223 #_8: { 223 #_8: {
224 "id": "<int>", 224 "id": "<int>",
225 "result": { 225 "result": {
226 "accessibilityNode": { 226 "accessibilityNode": {
227 "nodeId": "<string>", 227 "nodeId": "<string>",
228 "ignored": true, 228 "ignored": true,
229 "role": {
230 "type": "role",
231 "value": "img"
232 },
233 "ignoredReasons": [ 229 "ignoredReasons": [
234 { 230 {
235 "name": "emptyAlt", 231 "name": "emptyAlt",
236 "value": { 232 "value": {
237 "type": "boolean", 233 "type": "boolean",
238 "value": true 234 "value": true
239 } 235 }
240 } 236 }
241 ] 237 ],
238 "role": {
239 "type": "role",
240 "value": "img"
241 }
242 } 242 }
243 } 243 }
244 } 244 }
245 #_9: { 245 #_9: {
246 "id": "<int>", 246 "id": "<int>",
247 "result": { 247 "result": {
248 "accessibilityNode": { 248 "accessibilityNode": {
249 "nodeId": "<string>", 249 "nodeId": "<string>",
250 "ignored": true, 250 "ignored": true,
251 "role": {
252 "type": "role",
253 "value": "none"
254 },
255 "ignoredReasons": [ 251 "ignoredReasons": [
256 { 252 {
257 "name": "presentationalRole", 253 "name": "presentationalRole",
258 "value": { 254 "value": {
259 "type": "boolean", 255 "type": "boolean",
260 "value": true 256 "value": true
261 } 257 }
262 } 258 }
263 ] 259 ],
260 "role": {
261 "type": "role",
262 "value": "none"
263 }
264 } 264 }
265 } 265 }
266 } 266 }
267 #_10: { 267 #_10: {
268 "id": "<int>", 268 "id": "<int>",
269 "result": { 269 "result": {
270 "accessibilityNode": { 270 "accessibilityNode": {
271 "nodeId": "<string>", 271 "nodeId": "<string>",
272 "ignored": true, 272 "ignored": true,
273 "role": {
274 "type": "role",
275 "value": "listitem"
276 },
277 "ignoredReasons": [ 273 "ignoredReasons": [
278 { 274 {
279 "name": "inheritsPresentation", 275 "name": "inheritsPresentation",
280 "value": { 276 "value": {
281 "type": "idref", 277 "type": "idref",
282 "relatedNodes": [ 278 "relatedNodes": [
283 { 279 {
284 "backendNodeId": "<string>", 280 "backendNodeId": "<string>",
285 "idref": "_9" 281 "idref": "_9"
286 } 282 }
287 ] 283 ]
288 } 284 }
289 } 285 }
290 ] 286 ],
287 "role": {
288 "type": "role",
289 "value": "listitem"
290 }
291 } 291 }
292 } 292 }
293 } 293 }
294 #_11: { 294 #_11: {
295 "id": "<int>", 295 "id": "<int>",
296 "result": { 296 "result": {
297 "accessibilityNode": { 297 "accessibilityNode": {
298 "nodeId": "<string>", 298 "nodeId": "<string>",
299 "ignored": false, 299 "ignored": false,
300 "role": { 300 "role": {
301 "type": "internalRole", 301 "type": "internalRole",
302 "value": "Div" 302 "value": "Div"
303 }, 303 },
304 "properties": [],
305 "name": { 304 "name": {
306 "type": "computedString", 305 "type": "computedString",
307 "value": "", 306 "value": "",
308 "sources": [ 307 "sources": [
309 { 308 {
310 "type": "relatedElement", 309 "type": "relatedElement",
311 "attribute": "aria-labelledby" 310 "attribute": "aria-labelledby"
312 }, 311 },
313 { 312 {
314 "type": "attribute", 313 "type": "attribute",
315 "attribute": "aria-label" 314 "attribute": "aria-label"
316 }, 315 },
317 { 316 {
318 "type": "attribute", 317 "type": "attribute",
319 "attribute": "title" 318 "attribute": "title"
320 } 319 }
321 ] 320 ]
322 } 321 },
322 "properties": []
323 } 323 }
324 } 324 }
325 } 325 }
326 #_12: { 326 #_12: {
327 "id": "<int>", 327 "id": "<int>",
328 "result": { 328 "result": {
329 "accessibilityNode": { 329 "accessibilityNode": {
330 "nodeId": "<string>", 330 "nodeId": "<string>",
331 "ignored": true, 331 "ignored": true,
332 "role": {
333 "type": "internalRole",
334 "value": "Label"
335 },
336 "ignoredReasons": [ 332 "ignoredReasons": [
337 { 333 {
338 "name": "labelFor", 334 "name": "labelFor",
339 "value": { 335 "value": {
340 "type": "idref", 336 "type": "idref",
341 "relatedNodes": [ 337 "relatedNodes": [
342 { 338 {
343 "backendNodeId": "<string>", 339 "backendNodeId": "<string>",
344 "idref": "checkbox" 340 "idref": "checkbox"
345 } 341 }
346 ] 342 ]
347 } 343 }
348 } 344 }
349 ] 345 ],
346 "role": {
347 "type": "internalRole",
348 "value": "Label"
349 }
350 } 350 }
351 } 351 }
352 } 352 }
353 #_13: { 353 #_13: {
354 "id": "<int>", 354 "id": "<int>",
355 "result": { 355 "result": {
356 "accessibilityNode": { 356 "accessibilityNode": {
357 "nodeId": "<string>", 357 "nodeId": "<string>",
358 "ignored": true, 358 "ignored": true,
359 "role": {
360 "type": "internalRole",
361 "value": "Unknown"
362 },
363 "ignoredReasons": [ 359 "ignoredReasons": [
364 { 360 {
365 "name": "labelContainer", 361 "name": "labelContainer",
366 "value": { 362 "value": {
367 "type": "idref", 363 "type": "idref",
368 "relatedNodes": [ 364 "relatedNodes": [
369 { 365 {
370 "backendNodeId": "<string>", 366 "backendNodeId": "<string>",
371 "idref": "_12" 367 "idref": "_12"
372 } 368 }
373 ] 369 ]
374 } 370 }
375 }, 371 },
376 { 372 {
377 "name": "labelFor", 373 "name": "labelFor",
378 "value": { 374 "value": {
379 "type": "idref", 375 "type": "idref",
380 "relatedNodes": [ 376 "relatedNodes": [
381 { 377 {
382 "backendNodeId": "<string>", 378 "backendNodeId": "<string>",
383 "idref": "checkbox" 379 "idref": "checkbox"
384 } 380 }
385 ] 381 ]
386 } 382 }
387 } 383 }
388 ] 384 ],
385 "role": {
386 "type": "internalRole",
387 "value": "Unknown"
388 }
389 } 389 }
390 } 390 }
391 } 391 }
392 #_14: { 392 #_14: {
393 "id": "<int>", 393 "id": "<int>",
394 "result": { 394 "result": {
395 "accessibilityNode": { 395 "accessibilityNode": {
396 "nodeId": "<string>", 396 "nodeId": "<string>",
397 "ignored": true, 397 "ignored": true,
398 "role": {
399 "type": "internalRole",
400 "value": "Div"
401 },
402 "ignoredReasons": [ 398 "ignoredReasons": [
403 { 399 {
404 "name": "notRendered", 400 "name": "notRendered",
405 "value": { 401 "value": {
406 "type": "boolean", 402 "type": "boolean",
407 "value": true 403 "value": true
408 } 404 }
409 } 405 }
410 ] 406 ],
407 "role": {
408 "type": "internalRole",
409 "value": "Div"
410 }
411 } 411 }
412 } 412 }
413 } 413 }
414 #_15: { 414 #_15: {
415 "id": "<int>", 415 "id": "<int>",
416 "result": { 416 "result": {
417 "accessibilityNode": { 417 "accessibilityNode": {
418 "nodeId": "<string>", 418 "nodeId": "<string>",
419 "ignored": true, 419 "ignored": true,
420 "role": {
421 "type": "internalRole",
422 "value": "Canvas"
423 },
424 "ignoredReasons": [ 420 "ignoredReasons": [
425 { 421 {
426 "name": "probablyPresentational", 422 "name": "probablyPresentational",
427 "value": { 423 "value": {
428 "type": "boolean", 424 "type": "boolean",
429 "value": true 425 "value": true
430 } 426 }
431 } 427 }
432 ] 428 ],
429 "role": {
430 "type": "internalRole",
431 "value": "Canvas"
432 }
433 } 433 }
434 } 434 }
435 } 435 }
436 436
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698