accessible/tests/mochitest/states/test_popup.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     4                  type="text/css"?>
     6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     7         title="XUL popup attribute test">
     9   <script type="application/javascript"
    10           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
    12   <script type="application/javascript"
    13           src="../common.js" />
    14   <script type="application/javascript"
    15           src="../role.js" />
    16   <script type="application/javascript"
    17           src="../states.js" />
    19   <script type="application/javascript">
    20   <![CDATA[
    21     function doTest()
    22     {
    23       // label with popup
    24       testStates("labelWithPopup", STATE_HASPOPUP);
    26       SimpleTest.finish();
    27     }
    29     SimpleTest.waitForExplicitFinish();
    30     addA11yLoadEvent(doTest);
    31   ]]>
    32   </script>
    34   <hbox flex="1" style="overflow: auto;">
    35     <body xmlns="http://www.w3.org/1999/xhtml">
    36       <a target="_blank"
    37          href="https://bugzilla.mozilla.org/show_bug.cgi?id=504252"
    38          title="Expose STATE_HASPOPUP on XUL elements that have an @popup attribute">
    39         Mozilla Bug 504252
    40       </a><br/>
    41       <p id="display"></p>
    42       <div id="content" style="display: none">
    43       </div>
    44       <pre id="test">
    45       </pre>
    46     </body>
    48     <!-- label with popup attribute -->
    49     <label id="labelWithPopup" value="file name"
    50            popup="fileContext"
    51            tabindex="0"/>
    52   </hbox>
    54 </window>

mercurial