mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
afdb74a8c5
--HG-- rename : accessible/tests/mochitest/test_nsHyperTextAcc_roles.html => accessible/tests/mochitest/test_role_nsHyperTextAcc.html
13 lines
233 B
JavaScript
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 + "!");
|
|
}
|
|
}
|