accessible/tests/mochitest/states/test_popup.xul

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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