something

This commit is contained in:
Joel Einbinder 2020-01-14 16:38:49 -08:00
parent 59d9d6c375
commit 7530007466
2 changed files with 2 additions and 2 deletions

View file

@ -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];

View file

@ -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
]
};