Skip to content

Commit

Permalink
fix: Use testUtils in table tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Jul 11, 2017
1 parent 790ae27 commit 364d5cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/commons/aria/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
aria.label = function (node) {
var ref, candidate;
if (node.actualNode instanceof Node === false) {
node = axe.utils.getNodeFromTree(axe._tree[0], node);
}
node = axe.utils.getNodeFromTree(axe._tree[0], node);
}

if (node.actualNode.getAttribute('aria-labelledby')) {
// aria-labelledby
Expand Down
2 changes: 1 addition & 1 deletion test/checks/tables/td-has-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe('td-has-header', function () {
'use strict';

var fixture = document.getElementById('fixture');
var shadowSupport = (document.body && typeof document.body.attachShadow === 'function');
var shadowSupport = axe.testUtils.shadowSupport.v1;
var checkContext = {
_relatedNodes: [],
_data: null,
Expand Down
2 changes: 1 addition & 1 deletion test/checks/tables/th-has-data-cells.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe('th-has-data-cells', function () {
'use strict';

var fixture = document.getElementById('fixture');
var shadowSupport = (document.body && typeof document.body.attachShadow === 'function');
var shadowSupport = axe.testUtils.shadowSupport.v1;
var checkContext = {
_relatedNodes: [],
_data: null,
Expand Down

0 comments on commit 364d5cd

Please sign in to comment.