Skip to content

Commit

Permalink
additional test for overwritten role with nested child content
Browse files Browse the repository at this point in the history
  • Loading branch information
gaiety-deque committed Apr 30, 2024
1 parent be633af commit d515329
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/checks/navigation/region.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ describe('region', function () {
assert.isFalse(checkEvaluate.apply(checkContext, checkArgs));
});

it('ignores native landmark elements with an overwriting role with a nested child', function () {
var checkArgs = checkSetup(`
<main id="target" role="none"><p>Content</p></main>
<div role="main">Content</div>
`);

assert.isFalse(checkEvaluate.apply(checkContext, checkArgs));
});

it('returns false for content outside of form tags with accessible names', function () {
var checkArgs = checkSetup(
'<p id="target">Text</p><form aria-label="form"></form>'
Expand Down

0 comments on commit d515329

Please sign in to comment.