Function
states
(map: Record<string, StateValue>)
Source from the content-addressed store, hash-verified
| 42 | } |
| 43 | |
| 44 | function states(map: Record<string, StateValue>): string { |
| 45 | let out = '' |
| 46 | for (const key of STATE_ORDER) { |
| 47 | const value = map[key] |
| 48 | if (value === true) { |
| 49 | out += ` [${key}]` |
| 50 | } else if (value !== undefined && value !== false) { |
| 51 | out += ` [${key}=${value}]` |
| 52 | } |
| 53 | } |
| 54 | return out |
| 55 | } |
| 56 | |
| 57 | function line(node: AccessibilityNode): string { |
| 58 | if (node.role === 'text') { |
Tested by
no test coverage detected