|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
|
3 |
|
4 <window title="Popup Tests" |
|
5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
6 |
|
7 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> |
|
8 <script type="application/javascript" src="popup_shared.js"></script> |
|
9 <script type="application/javascript" src="popup_trigger.js"></script> |
|
10 |
|
11 <script> |
|
12 window.opener.SimpleTest.waitForFocus(runTests, window); |
|
13 </script> |
|
14 |
|
15 <hbox style="margin-left: 200px; margin-top: 270px;"> |
|
16 <button id="trigger" type="menu" label="Popup" width="100" height="50"> |
|
17 <menupopup id="thepopup"> |
|
18 <menuitem id="item1" label="First"/> |
|
19 <menuitem id="item2" label="Main Item"/> |
|
20 <menuitem id="amenu" label="A Menu" accesskey="M"/> |
|
21 <menuitem id="item3" label="Third"/> |
|
22 <menuitem id="one" label="One"/> |
|
23 <menuitem id="fancier" label="Fancier Menu"/> |
|
24 <menu id="submenu" label="Only Menu"> |
|
25 <menupopup id="submenupopup"> |
|
26 <menuitem id="submenuitem" label="Test Submenu"/> |
|
27 </menupopup> |
|
28 </menu> |
|
29 <menuitem id="other" disabled="true" label="Other Menu"/> |
|
30 <menuitem id="secondlast" label="Second Last Menu" accesskey="T"/> |
|
31 <menuitem id="last" label="One Other Menu"/> |
|
32 </menupopup> |
|
33 </button> |
|
34 </hbox> |
|
35 |
|
36 <!-- this frame is used to check that document.popupNode |
|
37 is inaccessible from different sources --> |
|
38 <iframe id="childframe" type="content" width="10" height="10" |
|
39 src="http://sectest2.example.org:80/chrome/toolkit/content/tests/chrome/popup_childframe_node.xul"/> |
|
40 |
|
41 </window> |