tor-browser

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

test_image.xhtml (1585B)


      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="Accessible XUL textbox and textarea hierarchy tests">
      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="../events.js" />
     17 
     18  <script type="application/javascript">
     19  <![CDATA[
     20    ////////////////////////////////////////////////////////////////////////////
     21    // Test
     22 
     23    function doTest()
     24    {
     25      var accTree = {
     26        role: ROLE_GRAPHIC,
     27        children: []
     28      };
     29      testAccessibleTree("image", accTree);
     30 
     31      SimpleTest.finish()
     32    }
     33 
     34    SimpleTest.waitForExplicitFinish();
     35    addA11yLoadEvent(doTest);
     36  ]]>
     37  </script>
     38 
     39  <hbox flex="1" style="overflow: auto;">
     40    <body xmlns="http://www.w3.org/1999/xhtml">
     41      <a target="_blank"
     42         href="https://bugzilla.mozilla.org/show_bug.cgi?id=1403231"
     43         title="Remove the image XBL binding">
     44        Mozilla Bug 1403231
     45      </a><br/>
     46      <p id="display"></p>
     47      <div id="content" style="display: none">
     48      </div>
     49      <pre id="test">
     50      </pre>
     51    </body>
     52 
     53    <vbox flex="1">
     54      <image id="image" src="../moz.png" tooltiptext="hello"/>
     55    </vbox>
     56  </hbox>
     57 
     58 </window>