Bug 1792964: Add hittesting test for tables, table rows, table cells r=eeejay

Differential Revision: https://phabricator.services.mozilla.com/D159524
This commit is contained in:
Morgan Rae Reschenberg 2022-10-18 19:07:44 +00:00
Родитель 32271e47f7
Коммит afa76746a5
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -78,6 +78,13 @@ async function runTests(browser, accDoc) {
container2Input,
container2Input
);
info("hittesting table, row, cells -- rows are not in the layout tree");
const table = findAccessibleChildByID(accDoc, "table");
const row = findAccessibleChildByID(accDoc, "row");
const cell1 = findAccessibleChildByID(accDoc, "cell1");
await hitTest(browser, table, row, cell1);
}
addAccessibleTask(
@ -106,6 +113,13 @@ addAccessibleTask(
<div id="container2" style="width: 0px">
<input id="container2_input">
</div>
<table id="table" border>
<tr id="row">
<td id="cell1">hello</td>
<td id="cell2">world</td>
</tr>
</table>
`,
runTests,
{