Bug 1626638 - Add subrole of AXTabButtton to page tabs. r=morgan

Differential Revision: https://phabricator.services.mozilla.com/D69212

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eitan Isaacson 2020-04-02 05:47:52 +00:00
parent 5c3d7d4ed9
commit 99fcfa7336
3 changed files with 5 additions and 4 deletions

View File

@ -1031,6 +1031,9 @@ static const uint64_t kCacheInitialized = ((uint64_t)0x1) << 63;
case roles::TOGGLE_BUTTON:
return @"AXToggle";
case roles::PAGETAB:
return @"AXTabButton";
default:
break;
}

View File

@ -62,8 +62,7 @@ add_task(async () => {
let tab = selectedTabs[0];
is(tab.getAttributeValue("AXRole"), "AXRadioButton", "Correct role for tab");
// Bug 1626638
todo_is(
is(
tab.getAttributeValue("AXSubrole"),
"AXTabButton",
"Correct subrole for tab"

View File

@ -30,8 +30,7 @@ addAccessibleTask("mac/doc_aria_tabs.html", async (browser, accDoc) => {
let tab = selectedTabs[0];
is(tab.getAttributeValue("AXRole"), "AXRadioButton", "Correct role for tab");
// Bug 1626638
todo_is(
is(
tab.getAttributeValue("AXSubrole"),
"AXTabButton",
"Correct subrole for tab"