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