tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_popup.xhtml (1508B)


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