Bug 1809761: Introduce text bounds test for interleaving block- and inline-frame accessibles r=Jamie

Differential Revision: https://phabricator.services.mozilla.com/D171918
This commit is contained in:
Morgan Rae Reschenberg 2023-03-28 19:23:05 +00:00
Родитель 7205495281
Коммит df1f70a647
1 изменённых файлов: 32 добавлений и 0 удалений

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

@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
requestLongerTimeout(3);
/* import-globals-from ../../mochitest/layout.js */
loadScripts({ name: "layout.js", dir: MOCHITESTS_DIR });
@ -672,3 +673,34 @@ foo</p>
},
{ chrome: true, topLevel: !isWinNoCache, remoteIframe: !isWinNoCache }
);
/**
* Test character bounds in an intervening inline element with non-br line breaks
*/
addAccessibleTask(
`
<style>
@font-face {
font-family: Ahem;
src: url(${CURRENT_CONTENT_DIR}e10s/fonts/Ahem.sjs);
}
pre {
font: 20px/20px Ahem;
}
</style>
<pre><code id="t" role="group">XX
XXX
XX
X</pre>`,
async function(browser, docAcc) {
await testChar(docAcc, browser, "t", 0);
await testChar(docAcc, browser, "t", 3);
await testChar(docAcc, browser, "t", 7);
await testChar(docAcc, browser, "t", 10);
},
{
chrome: true,
topLevel: !isWinNoCache,
iframe: !isWinNoCache,
}
);