Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<?xml version="1.0"?>
type="text/css"?>
title="Accessible XUL tooltip test">
<script type="application/javascript"
src="../common.js" />
<script type="application/javascript"
src="../role.js" />
<script type="application/javascript"
src="../promisified-events.js" />
<script type="application/javascript">
<![CDATA[
async function doTest() {
let tooltip = document.getElementById("tooltip");
testAccessibleTree("tooltip-container", { GROUPING: [
] });
let shown = waitForEvent(EVENT_SHOW, tooltip);
tooltip.openPopup();
await shown;
testAccessibleTree("tooltip-container",
{ GROUPING: [
{ TOOLTIP: [] },
{ STATICTEXT: [] },
] });
let hidden = waitForEvent(EVENT_HIDE, tooltip);
tooltip.hidePopup();
await hidden;
testAccessibleTree("tooltip-container", { GROUPING: [] });
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
addA11yLoadEvent(doTest);
]]>
</script>
<hbox flex="1" style="overflow: auto;">
<a target="_blank"
title="Added anonymous tooltip to mochitest docs messes with text">
</a>
<br/>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
</body>
<vbox flex="1" role="group" id="tooltip-container">
<tooltip id="tooltip">
<description class="tooltip-label" value="hello world"/>
</tooltip>
</vbox>
</hbox>
</window>