Skip to content

Commit

Permalink
update has-widget-role unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dbjorge committed Feb 7, 2025
1 parent 982300b commit 67f975c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/checks/aria/has-widget-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,6 @@ describe('has-widget-role', function () {
);
});

it('should return true for role=tabpanel', function () {
node = document.createElement('div');
node.setAttribute('role', 'tabpanel');
fixture.appendChild(node);
assert.isTrue(
axe.testUtils.getCheckEvaluate('has-widget-role').call(checkContext, node)
);
});

it('should return true for role=textbox', function () {
node = document.createElement('div');
node.setAttribute('role', 'textbox');
Expand Down Expand Up @@ -479,6 +470,15 @@ describe('has-widget-role', function () {
);
});

it('should return false for role=tabpanel', function () {
node = document.createElement('div');
node.setAttribute('role', 'tabpanel');
fixture.appendChild(node);
assert.isFalse(
axe.testUtils.getCheckEvaluate('has-widget-role').call(checkContext, node)
);
});

it('should return false for role=term', function () {
node = document.createElement('div');
node.setAttribute('role', 'term');
Expand Down

0 comments on commit 67f975c

Please sign in to comment.