/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
<input type="radio" id="radio7">`,
async function (browser, accDoc) {
let getAcc = id => findAccessibleChildByID(accDoc, id);
// //////////////////////////////////////////////////////////////////////// // HTML input@type="radio" within form
testGroupAttrs(getAcc("radio1"), 1, 2);
testGroupAttrs(getAcc("radio2"), 2, 2);
// //////////////////////////////////////////////////////////////////////// // HTML input@type="radio" within document
testGroupAttrs(getAcc("radio3"), 1, 2); // radio4 is wrapped in a label
testGroupAttrs(getAcc("radio4"), 2, 2);
// //////////////////////////////////////////////////////////////////////// // Hidden HTML input@type="radio"
testGroupAttrs(getAcc("radio5"), 1, 1);
// //////////////////////////////////////////////////////////////////////// // HTML input@type="radio" with different name but same parent
testGroupAttrs(getAcc("radio6"), 1, 1);
// //////////////////////////////////////////////////////////////////////// // HTML input@type="radio" with no name
testGroupAttrs(getAcc("radio7"), 0, 0);
},
{
topLevel: true,
iframe: true,
remoteIframe: true,
chrome: true,
}
);
// ul should have item count and not hierarchical
testGroupParentAttrs(getAcc("ul"), 3, false);
// //////////////////////////////////////////////////////////////////////// // HTML ul/ol (nested lists)
testGroupAttrs(getAcc("li4"), 1, 3, 1);
testGroupAttrs(getAcc("li5"), 2, 3, 1);
testGroupAttrs(getAcc("li6"), 3, 3, 1); // ol with nested list should have 1st level item count and be hierarchical
testGroupParentAttrs(getAcc("ol"), 3, true);
testGroupAttrs(getAcc("n_li4"), 1, 3, 2);
testGroupAttrs(getAcc("n_li5"), 2, 3, 2);
testGroupAttrs(getAcc("n_li6"), 3, 3, 2); // nested ol should have item count and be hierarchical
testGroupParentAttrs(getAcc("ol_nested"), 3, true);
// //////////////////////////////////////////////////////////////////////// // ARIA menu (menuitem, separator, menuitemradio and menuitemcheckbox)
testGroupAttrs(getAcc("menu_item1"), 1, 2);
testGroupAttrs(getAcc("menu_item2"), 2, 2);
testGroupAttrs(getAcc("menu_item1.1"), 1, 2);
testGroupAttrs(getAcc("menu_item1.2"), 2, 2);
testGroupAttrs(getAcc("menu_item1.3"), 1, 3);
testGroupAttrs(getAcc("menu_item1.4"), 2, 3);
testGroupAttrs(getAcc("menu_item1.5"), 3, 3); // menu bar item count
testGroupParentAttrs(getAcc("menubar"), 2, false); // Bug 1492529. Menu should have total number of items 5 from both sets, // but only has the first 2 item set.
todoAttr(getAcc("menu"), "child-item-count", "5");
},
{
topLevel: true,
iframe: true,
remoteIframe: true,
chrome: true,
}
);
addAccessibleTask(
`<ul id="tablist_1" role="tablist">
<li id="tab_1" role="tab">Crust</li>
<li id="tab_2" role="tab">Veges</li>
<li id="tab_3" role="tab">Carnivore</li>
</ul>`,
async function (browser, accDoc) {
let getAcc = id => findAccessibleChildByID(accDoc, id);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.