Skip to content

Commit

Permalink
test: More testing for accessibleText()
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/commons/dom/find-elms-in-context.js
#	lib/commons/text/accessible-text.js
#	test/checks/keyboard/focusable-no-name.js
#	test/checks/tables/same-caption-summary.js
#	test/commons/text/accessible-text.js
  • Loading branch information
WilcoFiers authored and marcysutton committed Jul 19, 2017
1 parent f729e25 commit c62a6d3
Showing 1 changed file with 2 additions and 2 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 tabbable with no name - ARIA', function () {
it('should fail if element is tabable 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 tabbable but has an accessible name', function () {
it('should pass if the element is tabable 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

0 comments on commit c62a6d3

Please sign in to comment.