it('should pass with a table of role none', function () {
var table = new axe.SerialVirtualNode({
nodeName: 'table',
attributes: {
role: 'none'
}
});
var tr = new axe.SerialVirtualNode({
nodeName: 'tr',
});
var th = new axe.SerialVirtualNode({
nodeName: 'th',
});
tr.children = [th];
tr.parent = table;
th.parent = tr;
th.children = [];
table.children = [tr];
var results = axe.runVirtualRule('empty-table-header', table);
assert.lengthOf(results.passes, 1);
assert.lengthOf(results.violations, 0);
assert.lengthOf(results.incomplete, 0);
});
This failing the needs to be added and resolved:
Originally posted by @dbowling in #3801 (comment)