something
This commit is contained in:
parent
59d9d6c375
commit
7530007466
|
|
@ -72,7 +72,7 @@ export class Accessibility {
|
|||
interestingOnly = true,
|
||||
root = null,
|
||||
} = options;
|
||||
const {tree, needle} = await this._getAXTree(root);
|
||||
const {tree, needle} = await this._getAXTree(root || undefined);
|
||||
if (!interestingOnly) {
|
||||
if (root)
|
||||
return needle && serializeTree(needle)[0];
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
|
|||
{role: 'textbox', name: 'disabled input', disabled: true},
|
||||
{role: 'textbox', name: 'Input with whitespace', value: ' ' },
|
||||
{role: 'textbox', name: '', value: 'value only' },
|
||||
{role: 'textbox', name: 'placeholder',value: 'and a value'},
|
||||
{role: 'textbox', name: 'placeholder', value: 'and a value'},
|
||||
{role: 'textbox', name: 'This is a description!',value: 'and a value'}, // webkit uses the description over placeholder for the name
|
||||
]
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue