tor-browser

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

test_tabs.xhtml (1925B)


      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 tabbox 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="../states.js" />
     17 
     18  <script type="application/javascript">
     19  <![CDATA[
     20    ////////////////////////////////////////////////////////////////////////////
     21    // Test
     22 
     23    function doTest()
     24    {
     25      testStates("tab1", STATE_FOCUSABLE, EXT_STATE_PINNED);
     26      testStates("tab2", STATE_FOCUSABLE, EXT_STATE_PINNED);
     27      testStates("tab3", STATE_FOCUSABLE, 0, 0, EXT_STATE_PINNED);
     28 
     29      SimpleTest.finish()
     30    }
     31 
     32    SimpleTest.waitForExplicitFinish();
     33    addA11yLoadEvent(doTest);
     34  ]]>
     35  </script>
     36 
     37  <hbox flex="1" style="overflow: auto;">
     38    <body xmlns="http://www.w3.org/1999/xhtml">
     39      <a target="_blank"
     40         href="https://bugzilla.mozilla.org/show_bug.cgi?id=577727"
     41         title="Make pinned tabs distinguishable from other tabs for accessibility">
     42        Mozilla Bug 577727
     43      </a><br/>
     44      <p id="display"></p>
     45      <div id="content" style="display: none">
     46      </div>
     47      <pre id="test">
     48      </pre>
     49    </body>
     50 
     51    <vbox flex="1">
     52      <tabbox>
     53        <tabs id="tabs">
     54          <tab id="tab1" label="tab1" pinned=""/>
     55          <tab id="tab2" label="tab2" pinned="true"/>
     56          <tab id="tab3" label="tab3"/>
     57        </tabs>
     58        <tabpanels id="tabpanels">
     59          <tabpanel/>
     60          <tabpanel/>
     61        </tabpanels>
     62      </tabbox>
     63    </vbox>
     64  </hbox>
     65 
     66 </window>