toolkit/content/tests/chrome/bug624329_window.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/content/tests/chrome/bug624329_window.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +
     1.7 +<window title="Test for bug 624329 context menu position"
     1.8 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.9 +        context="menu">
    1.10 +
    1.11 +  <script>
    1.12 +    opener.SimpleTest.waitForFocus(opener.childFocused, window);
    1.13 +  </script>
    1.14 +
    1.15 +  <menupopup id="menu">
    1.16 +    <!-- The bug demonstrated only when the accesskey was presented separately
    1.17 +         from the label.
    1.18 +         e.g. because the accesskey is not a letter in the label.
    1.19 +
    1.20 +         The bug demonstrates only on the first show of the context menu
    1.21 +         unless menu items are removed/added each time the menu is
    1.22 +         constructed. -->
    1.23 +    <menuitem label="Long label to ensure the popup would hit the right of the screen" accesskey="1"/>
    1.24 +  </menupopup>
    1.25 +</window>

mercurial