mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
15 lines
320 B
JavaScript
15 lines
320 B
JavaScript
function testName(aID, aName)
|
|
{
|
|
var acc = getAccessible(aID);
|
|
if (!acc) {
|
|
ok(false, "No accessible for " + aID + "!");
|
|
}
|
|
|
|
try {
|
|
is(acc.name, aName, "Wrong name of the accessible for " + aID);
|
|
} catch (e) {
|
|
ok(false, "Can't get name of the accessible for " + aID);
|
|
}
|
|
return acc;
|
|
}
|