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 menu hierarchy tests">
9 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
11 <script type=
"application/javascript"
13 <script type=
"application/javascript"
15 <script type=
"application/javascript"
18 <script type=
"application/javascript">
20 ////////////////////////////////////////////////////////////////////////////
23 function openMenu(aID)
25 this.menuNode = getNode(aID);
28 new invokerChecker(EVENT_FOCUS, this.menuNode)
31 this.invoke = function openMenu_invoke()
34 if (LINUX || SOLARIS) {
36 { PARENT_MENUITEM: [ ] };
44 testAccessibleTree(aID, tree);
47 this.menuNode.open = true;
50 this.finalCheck = function openMenu_finalCheck()
53 if (LINUX || SOLARIS) {
69 testAccessibleTree(aID, tree);
72 this.getID = function openMenu_getID()
74 return
"open menu " + prettyName(aID);
78 ////////////////////////////////////////////////////////////////////////////
84 gQueue = new eventQueue();
85 gQueue.push(new openMenu(
"menu"));
86 gQueue.invoke(); // Will call SimpleTest.finish();
89 SimpleTest.waitForExplicitFinish();
90 addA11yLoadEvent(doTest);
94 <hbox flex=
"1" style=
"overflow: auto;">
95 <body xmlns=
"http://www.w3.org/1999/xhtml">
97 href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=249292"
98 title=
"Ensure accessible children for toolbarbutton types 'menu'">
102 href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=630486"
103 title=
"Don't force accessible creation for popup children.">
108 <div id=
"content" style=
"display: none">
116 <menu id=
"menu" label=
"menu">
118 <menuitem label=
"menuitem"/>
119 <menuitem label=
"menuitem"/>