/* 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/. */
"use strict";
/**
* Test aria-describedby
*/
addAccessibleTask(
`
`,
async (browser, accDoc) => {
let getHelp = id =>
getNativeInterface(accDoc, id).getAttributeValue("AXHelp");
let getCustomDescription = id =>
getNativeInterface(accDoc, id).getAttributeValue("AXCustomContent")[0]
.description;
is(
getHelp("fieldset"),
null,
"No AXHelp for fieldset with aria-describedby"
);
is(
getCustomDescription("fieldset"),
"This is a hinto",
"Custom description for fieldset"
);
is(
getHelp("radiogroup"),
null,
"No AXHelp for radiogroup with aria-describedby"
);
is(
getCustomDescription("radiogroup"),
"This is a hinto",
"Custom description for radiogroup"
);
}
);