tor-browser

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

test_map.html (2143B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <title>HTML map accessible tree tests</title>
      5  <link rel="stylesheet" type="text/css"
      6        href="chrome://mochikit/content/tests/SimpleTest/test.css" />
      7 
      8  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
      9 
     10  <script type="application/javascript"
     11          src="../common.js"></script>
     12  <script type="application/javascript"
     13          src="../role.js"></script>
     14 
     15  <script type="application/javascript">
     16    function doTest() {
     17      // map used as imagemap, not accessible
     18      var accTree =
     19        { SECTION: [ ] };
     20 
     21      testAccessibleTree("imagemapcontainer", accTree);
     22 
     23      // map group.  Imagemaps are inlines by default, so TEXT_CONTAINER.
     24      accTree =
     25        { TEXT_CONTAINER: [
     26          { PARAGRAPH: [
     27            { TEXT_LEAF: [ ] },
     28            { LINK: [
     29              { TEXT_LEAF: [ ] },
     30            ] },
     31            { TEXT_LEAF: [ ] },
     32            { LINK: [
     33              { TEXT_LEAF: [ ] },
     34            ] },
     35            { TEXT_LEAF: [ ] },
     36          ] },
     37        ] };
     38 
     39      testAccessibleTree("mapgroup", accTree);
     40 
     41      SimpleTest.finish();
     42    }
     43 
     44    SimpleTest.waitForExplicitFinish();
     45    addA11yLoadEvent(doTest);
     46  </script>
     47 </head>
     48 <body>
     49 
     50  <a target="_blank"
     51     title="Map used for grouping is not accessible under certain circumstances"
     52     href="https://bugzilla.mozilla.org/show_bug.cgi?id=627718">
     53    Mozilla Bug 627718
     54  </a>
     55  <p id="display"></p>
     56  <div id="content" style="display: none"></div>
     57  <pre id="test">
     58  </pre>
     59 
     60  <div id="imagemapcontainer">
     61    <map name="atoz_map">
     62      <area href="http://www.bbc.co.uk/radio4/atoz/index.shtml#b"
     63            coords="17,0,30,14" alt="b" shape="rect">
     64      <area href="http://www.bbc.co.uk/radio4/atoz/index.shtml#a"
     65            coords="0,0,13,14" alt="a" shape="rect">
     66    </map>
     67  </div>
     68 
     69  <img id="imgmap" width="447" height="15"
     70       usemap="#atoz_map"
     71       src="../letters.gif">
     72 
     73  <map id="mapgroup" title="Navigation Bar" name="mapgroup">
     74    <p>
     75      [<a href="#how">Bypass navigation bar</a>]
     76      [<a href="home.html">Home</a>]
     77    </p>
     78  </map>
     79 
     80 </body>
     81 </html>