зеркало из https://github.com/mozilla/pjs.git
15 строки
320 B
JavaScript
15 строки
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;
|
|
}
|