2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
3 <?xml-stylesheet href=
"chrome://mochikit/content/tests/SimpleTest/test.css"
6 <window xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
7 title=
"Accessible XUL tooltip test">
9 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
10 <script src=
"chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
12 <script type=
"application/javascript"
14 <script type=
"application/javascript"
16 <script type=
"application/javascript"
17 src=
"../promisified-events.js" />
19 <script type=
"application/javascript">
22 async function doTest() {
23 let tooltip = document.getElementById(
"tooltip");
25 testAccessibleTree(
"tooltip-container", { GROUPING: [
28 let shown = waitForEvent(EVENT_SHOW, tooltip);
32 testAccessibleTree(
"tooltip-container",
38 let hidden = waitForEvent(EVENT_HIDE, tooltip);
42 testAccessibleTree(
"tooltip-container", { GROUPING: [] });
47 SimpleTest.waitForExplicitFinish();
48 addA11yLoadEvent(doTest);
52 <hbox flex=
"1" style=
"overflow: auto;">
53 <body xmlns=
"http://www.w3.org/1999/xhtml">
55 href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1652211"
56 title=
"Added anonymous tooltip to mochitest docs messes with text">
61 <div id=
"content" style=
"display: none">
67 <vbox flex=
"1" role=
"group" id=
"tooltip-container">
68 <tooltip id=
"tooltip">
69 <description class=
"tooltip-label" value=
"hello world"/>