2007-08-03 07:06:16 -07:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
|
|
|
|
|
|
|
<window title="Popup Tests"
|
2009-09-03 12:30:06 -07:00
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
2007-08-03 07:06:16 -07:00
|
|
|
|
|
|
|
<title>Popup Tests</title>
|
|
|
|
<script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
|
|
|
<script type="application/javascript" src="popup_shared.js"></script>
|
|
|
|
<script type="application/javascript" src="popup_trigger.js"></script>
|
|
|
|
|
2008-08-18 10:53:59 -07:00
|
|
|
<script>
|
2009-09-03 12:30:06 -07:00
|
|
|
window.opener.SimpleTest.waitForFocus(runTests, window);
|
2008-08-18 10:53:59 -07:00
|
|
|
</script>
|
|
|
|
|
2008-02-19 22:56:41 -08:00
|
|
|
<hbox style="margin-left: 325px; margin-top: 325px;">
|
2007-08-03 07:06:16 -07:00
|
|
|
<button id="trigger" type="menu" label="Popup">
|
|
|
|
<menupopup id="thepopup">
|
|
|
|
<menuitem id="item1" label="First"/>
|
|
|
|
<menuitem id="item2" label="Main Item"/>
|
|
|
|
<menuitem id="amenu" label="A Menu" accesskey="M"/>
|
|
|
|
<menuitem id="item3" label="Third"/>
|
|
|
|
<menuitem id="one" label="One"/>
|
|
|
|
<menuitem id="fancier" label="Fancier Menu"/>
|
|
|
|
<menu id="submenu" label="Only Menu">
|
|
|
|
<menupopup id="submenupopup">
|
|
|
|
<menuitem id="submenuitem" label="Test Submenu"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menuitem id="other" disabled="true" label="Other Menu"/>
|
|
|
|
<menuitem id="secondlast" label="Second Last Menu" accesskey="T"/>
|
|
|
|
<menuitem id="last" label="One Other Menu"/>
|
|
|
|
</menupopup>
|
|
|
|
</button>
|
|
|
|
</hbox>
|
|
|
|
|
2010-08-09 09:17:19 -07:00
|
|
|
<!-- this frame is used to check that document.popupNode
|
|
|
|
is inaccessible from different sources -->
|
|
|
|
<iframe id="childframe" type="content" width="10" height="10"
|
|
|
|
src="http://sectest2.example.org:80/tests/toolkit/content/tests/widgets/popup_childframe_node.xul"/>
|
|
|
|
|
2007-08-03 07:06:16 -07:00
|
|
|
</window>
|