(opts: TreeTesterOpts)
| 34 | private _tree: HTMLElement; |
| 35 | |
| 36 | constructor(opts: TreeTesterOpts) { |
| 37 | let {root, user, interactionType, advanceTimer, direction} = opts; |
| 38 | this.user = user; |
| 39 | this._interactionType = interactionType || 'mouse'; |
| 40 | this._advanceTimer = advanceTimer; |
| 41 | this._direction = direction || 'ltr'; |
| 42 | this._tree = root; |
| 43 | if (root.getAttribute('role') !== 'treegrid') { |
| 44 | let tree = within(root).queryByRole('treegrid'); |
| 45 | if (tree) { |
| 46 | this._tree = tree; |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Set the interaction type used by the tree tester. |
nothing calls this directly
no outgoing calls
no test coverage detected