Bug 964546 - Add test for ignored roles. r=surkov

This commit is contained in:
David Bolter 2014-01-28 10:27:36 -05:00
parent d52820361f
commit a639c857e9

View File

@ -129,6 +129,10 @@
// roles transformed by ARIA state attributes
testRole("togglebutton", ROLE_TOGGLE_BUTTON);
//////////////////////////////////////////////////////////////////////////
// ignore unknown roles, take first known
testRole("unknown_roles", ROLE_PUSHBUTTON);
//////////////////////////////////////////////////////////////////////////
// misc roles
testRole("note", ROLE_NOTE);
@ -300,6 +304,9 @@
<!-- roles transformed by ARIA state attributes -->
<button aria-pressed="true" id="togglebutton">
<!-- take the first known mappable role -->
<div role="wiggly:worm abc123 button" id="unknown_roles">worm button</div>
<!-- misc roles -->
<div role="note" id="note">note</div>
<div role="scrollbar" id="scrollbar">scrollbar</div>