2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
4 <window title=
"Popup Tests"
5 onfocus=
"if (!gDone) { gDone = true; runTests(); }"
6 xmlns:
html=
"http://www.w3.org/1999/xhtml"
7 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
9 <title>Popup Tests
</title>
10 <script type=
"application/javascript" src=
"/tests/SimpleTest/EventUtils.js"></script>
11 <script type=
"application/javascript" src=
"popup_shared.js"></script>
12 <script type=
"application/javascript" src=
"popup_trigger.js"></script>
18 <hbox style=
"margin-left: 325px; margin-top: 325px;">
19 <button id=
"trigger" type=
"menu" label=
"Popup">
20 <menupopup id=
"thepopup">
21 <menuitem id=
"item1" label=
"First"/>
22 <menuitem id=
"item2" label=
"Main Item"/>
23 <menuitem id=
"amenu" label=
"A Menu" accesskey=
"M"/>
24 <menuitem id=
"item3" label=
"Third"/>
25 <menuitem id=
"one" label=
"One"/>
26 <menuitem id=
"fancier" label=
"Fancier Menu"/>
27 <menu id=
"submenu" label=
"Only Menu">
28 <menupopup id=
"submenupopup">
29 <menuitem id=
"submenuitem" label=
"Test Submenu"/>
32 <menuitem id=
"other" disabled=
"true" label=
"Other Menu"/>
33 <menuitem id=
"secondlast" label=
"Second Last Menu" accesskey=
"T"/>
34 <menuitem id=
"last" label=
"One Other Menu"/>