Skip to content

Commit

Permalink
fix: Remove log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Jul 6, 2017
1 parent 789d62e commit 6a6bd73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions lib/commons/dom/has-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ function hasChildTextNodes (elm) {
* @return boolean
*/
dom.hasContent = function hasContent (elm) {
/* global console */
console.log(
elm.actualNode,
hasChildTextNodes(elm),
dom.isVisualContent(elm.actualNode),
aria.label(elm)
);
return (
// It has text
hasChildTextNodes(elm) ||
Expand Down
3 changes: 0 additions & 3 deletions test/checks/visibility/hidden-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@ describe('hidden content', function () {
});

(shadowSupport ? it : xit)('works on elements in a shadow DOM', function () {
/* global console */
fixture.innerHTML = '<div id="shadow"> <div id="content">text</div> </div>';
var shadowRoot = document.getElementById('shadow').attachShadow({ mode: 'open' });
shadowRoot.innerHTML = '<div id="target" style="display:none">' +
'<slot></slot>' +
'</div>';
axe._tree = axe.utils.getFlattenedTree(fixture);
console.log(axe._tree);

var shadow = document.querySelector('#shadow');
var virtualShadow = axe.utils.getNodeFromTree(axe._tree[0], shadow);
console.log(virtualShadow, shadow);
assert.isTrue(
checks['hidden-content'].evaluate(shadow, undefined, virtualShadow)
);
Expand Down

0 comments on commit 6a6bd73

Please sign in to comment.