Bug 565569. Fix accessibility tests.

This commit is contained in:
David Bolter 2010-05-21 15:20:48 +12:00
parent c57160c9f8
commit 50796fed5f
2 changed files with 5 additions and 10 deletions

View File

@ -73,7 +73,8 @@
// Note: if input have label elements then the name isn't calculated
// from them.
testName("btn_labelledby_mixed_input",
"input button Submit Query Reset Submit Query");
"Submit Query Reset Submit Query");
// XXX Bug 567203 "input button Submit Query Reset Submit Query");
// Gets the name from the title of object element.
testName("btn_labelledby_mixed_object", "object");

View File

@ -36,24 +36,18 @@
testAccessibleTree("radio", accTree);
// input@type="button" and input@type="submit"
accTree = {
role: ROLE_PUSHBUTTON,
children: [ ]
};
testAccessibleTree("btn1", accTree);
testAccessibleTree("submit", accTree);
// button
accTree = {
role: ROLE_PUSHBUTTON,
children: [
{
role: ROLE_TEXT_LEAF
role: ROLE_TEXT_LEAF // XXX Bug 567203
}
]
};
testAccessibleTree("btn1", accTree);
testAccessibleTree("submit", accTree);
testAccessibleTree("btn2", accTree);
// input@type="image"