Skip to content

Commit

Permalink
Update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Mar 18, 2024
1 parent ce65d48 commit 081f112
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 33 deletions.
16 changes: 5 additions & 11 deletions test/checks/mobile/target-offset.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,15 @@ describe('target-offset tests', () => {
for (let i = 0; i < 100; i++) {
html += `
<tr>
<td><a href="#">Hello</a></td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td><button>view</button></td>
<td><button>download</button></td>
<td><button>expand</button></td>
<td><a href="#">A</a></td>
<td><button>B</button></td>
<td><button>C</button></td>
<td><button>D</button></td>
</tr>
`;
}
const checkArgs = checkSetup(`
<div id="target" role="tabpanel" tabindex="0">
<div id="target" role="tabpanel" tabindex="0" style="display:inline-block">
<table id="tab-table">${html}</table>
</div>
`);
Expand Down
16 changes: 5 additions & 11 deletions test/checks/mobile/target-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,21 +182,15 @@ describe('target-size tests', function () {
for (let i = 0; i < 100; i++) {
html += `
<tr>
<td><a href="#">Hello</a></td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td><button>view</button></td>
<td><button>download</button></td>
<td><button>expand</button></td>
<td><a href="#">A</a></td>
<td><button>B</button></td>
<td><button>C</button></td>
<td><button>D</button></td>
</tr>
`;
}
const checkArgs = checkSetup(`
<div id="target" role="tabpanel" tabindex="0">
<div id="target" role="tabpanel" tabindex="0" style="display:inline-block">
<table id="tab-table">${html}</table>
</div>
`);
Expand Down
21 changes: 10 additions & 11 deletions test/integration/full/target-size/too-many-rects.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
<main id="mocha"></main>

<section id="incomplete">
<div id="incomplete-many-rects" role="tabpanel" tabindex="0">
<div
id="incomplete-many-rects"
role="tabpanel"
tabindex="0"
style="display: inline-block"
>
<table id="tab-table"></table>
</div>
</section>
Expand All @@ -32,16 +37,10 @@
for (let i = 0; i < 100; i++) {
html += `
<tr>
<td><a href="#">Hello</a></td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td>Hello</td>
<td><button>view</button></td>
<td><button>download</button></td>
<td><button>expand</button></td>
<td><a href="#">A</a></td>
<td><button>B</button></td>
<td><button>C</button></td>
<td><button>D</button></td>
</tr>`;
}
document.querySelector('#tab-table').innerHTML = html;
Expand Down

0 comments on commit 081f112

Please sign in to comment.