diff --git a/test/checks/visibility/hidden-content.js b/test/checks/visibility/hidden-content.js index 32e10e5203..89c04d7070 100644 --- a/test/checks/visibility/hidden-content.js +++ b/test/checks/visibility/hidden-content.js @@ -1,7 +1,7 @@ describe('hidden content', function () { 'use strict'; - var fixture = document.getElementById('fixture'); + var fixture = document.getElementById('fixture'); var checkContext = { _data: null, @@ -12,7 +12,7 @@ describe('hidden content', function () { function checkSetup (html, options, target) { fixture.innerHTML = html; - axe._tree = axe.utils.getFlattenedTree(fixture); + axe._tree = axe.utils.getFlattenedTree(fixture); var node = fixture.querySelector(target || '#target'); var virtualNode = axe.utils.getNodeFromTree(axe._tree[0], node); return [node, options, virtualNode]; @@ -25,17 +25,17 @@ describe('hidden content', function () { }); it('should return undefined with display:none and children', function () { - var params = checkSetup(''); + var params = checkSetup(''); assert.isUndefined(checks['hidden-content'].evaluate.apply(checkContext, params)); }); it('should return undefined with visibility:hidden and children', function () { - var params = checkSetup(''); + var params = checkSetup(''); assert.isUndefined(checks['hidden-content'].evaluate.apply(checkContext, params)); }); it('should return true with visibility:hidden and parent with visibility:hidden', function () { - var params = checkSetup('
'); + var params = checkSetup('
'); assert.isTrue(checks['hidden-content'].evaluate.apply(checkContext, params)); }); @@ -46,7 +46,7 @@ describe('hidden content', function () { it('should skip whitelisted elements', function () { var node = document.querySelector('head'); - axe._tree = axe.utils.getFlattenedTree(document.documentElement); + axe._tree = axe.utils.getFlattenedTree(document.documentElement); var virtualNode = axe.utils.getNodeFromTree(axe._tree[0], node); assert.isTrue(checks['hidden-content'].evaluate.call(checkContext, node, undefined, virtualNode)); });