Skip to content

Commit

Permalink
test(td-headers-attr): update test fixtures (#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy authored and straker committed Mar 6, 2020
1 parent 2771425 commit 5ea339d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/checks/tables/td-headers-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('td-headers-attr', function() {
fixture.innerHTML =
'<table>' +
' <tr> <th id="hi">hello</th> </tr>' +
' <tr> <td headers="hi">goodbye</th> </tr>' +
' <tr> <td headers="hi">goodbye</td> </tr>' +
'</table>';

var node = fixture.querySelector('table');
Expand All @@ -35,7 +35,7 @@ describe('td-headers-attr', function() {
fixture.innerHTML =
'<table>' +
' <tr> <th id="hi1">hello</th> <th id="hi2">hello</th> </tr>' +
' <tr> <td headers="hi1 \t\n hi2">goodbye</th> </tr>' +
' <tr> <td headers="hi1 \t\n hi2">goodbye</td> </tr>' +
'</table>';

var node = fixture.querySelector('table');
Expand All @@ -46,7 +46,7 @@ describe('td-headers-attr', function() {
fixture.innerHTML =
'<table>' +
' <tr> <th id="hi1"></th> </tr>' +
' <tr> <td headers="hi1">goodbye</th> </tr>' +
' <tr> <td headers="hi1">goodbye</td> </tr>' +
'</table>';

var node = fixture.querySelector('table');
Expand All @@ -58,7 +58,7 @@ describe('td-headers-attr', function() {
fixture.innerHTML =
'<table>' +
' <tr> <th id="hi"> </th> </tr>' +
' <tr> <td headers="">goodbye</th> </tr>' +
' <tr> <td headers="">goodbye</td> </tr>' +
'</table>';

var node = fixture.querySelector('table');
Expand All @@ -71,7 +71,7 @@ describe('td-headers-attr', function() {
fixture.innerHTML =
'<table>' +
' <tr> <th> <span id="hi">hello</span> </th> </tr>' +
' <tr> <td headers="h1">goodbye</th> </tr>' +
' <tr> <td headers="h1">goodbye</td> </tr>' +
'</table>';
node = fixture.querySelector('table');
assert.isFalse(checks['td-headers-attr'].evaluate.call(checkContext, node));
Expand All @@ -80,15 +80,15 @@ describe('td-headers-attr', function() {
'<span id="hi">hello</span>' +
'<table>' +
' <tr> <th></th> </tr>' +
' <tr> <td headers="h1">goodbye</th> </tr>' +
' <tr> <td headers="h1">goodbye</td> </tr>' +
'</table>';
node = fixture.querySelector('table');
assert.isFalse(checks['td-headers-attr'].evaluate.call(checkContext, node));

fixture.innerHTML =
'<table id="hi">' +
' <tr> <th>hello</th> </tr>' +
' <tr> <td headers="h1">goodbye</th> </tr>' +
' <tr> <td headers="h1">goodbye</td> </tr>' +
'</table>';
node = fixture.querySelector('table');
assert.isFalse(checks['td-headers-attr'].evaluate.call(checkContext, node));
Expand All @@ -98,7 +98,7 @@ describe('td-headers-attr', function() {
fixture.innerHTML =
'<table id="hi">' +
' <tr> <th>hello</th> </tr>' +
' <tr> <td id="bye" headers="bye">goodbye</th> </tr>' +
' <tr> <td id="bye" headers="bye">goodbye</td> </tr>' +
'</table>';

var node = fixture.querySelector('table');
Expand Down

0 comments on commit 5ea339d

Please sign in to comment.