toolkit/content/tests/chrome/window_popup_button.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     4 <window title="Popup Tests"
     5         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     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>
    11 <script>
    12 window.opener.SimpleTest.waitForFocus(runTests, window);
    13 </script>
    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>
    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"/>
    41 </window>

mercurial