gecko/accessible/tests/mochitest/role.js
Marco Zehe afdb74a8c5 bug 474281 - accessible name of html table cells is incorrectly including descendants, r=aaronlev, r=surkov
--HG--
rename : accessible/tests/mochitest/test_nsHyperTextAcc_roles.html => accessible/tests/mochitest/test_role_nsHyperTextAcc.html
2009-01-20 16:02:35 +01:00

13 lines
233 B
JavaScript

function testRole(aID, aRole)
{
var acc = getAccessible(aID);
if (!acc)
return;
try {
is(acc.finalRole, aRole, "Wrong role for " + aID + "!");
} catch(e) {
ok(false, "Error getting role for " + aID + "!");
}
}