Skip to content

Commit

Permalink
fix: Pass all tests that use accessibleText
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers authored and marcysutton committed Jul 19, 2017
1 parent 0f98481 commit 7ea8d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/checks/keyboard/focusable-no-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ describe('focusable-no-name', function () {
assert.isTrue(checks['focusable-no-name'].evaluate(node));
});

it('should fail if element is tabable with no name - ARIA', function () {
it('should fail if element is tabbable with no name - ARIA', function () {
fixtureSetup('<span tabindex="0" role="link" href="#"></spam>');
var node = fixture.querySelector('span');
assert.isTrue(checks['focusable-no-name'].evaluate(node));
});

it('should pass if the element is tabable but has an accessible name', function () {
it('should pass if the element is tabbable but has an accessible name', function () {
fixtureSetup('<a href="#" title="Hello"></a>');
var node = fixture.querySelector('a');
assert.isFalse(checks['focusable-no-name'].evaluate(node));
Expand Down
1 change: 0 additions & 1 deletion test/testutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ testUtils.fixtureSetup = function (content) {
axe._tree = axe.utils.getFlattenedTree(fixture);
return fixture;
};

/**
* Create check arguments
*
Expand Down

0 comments on commit 7ea8d6b

Please sign in to comment.