tor-browser

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

test_gencontent.html (1501B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <head>
      5  <title>Generated content tests</title>
      6  <link rel="stylesheet" type="text/css"
      7        href="chrome://mochikit/content/tests/SimpleTest/test.css" />
      8 
      9  <style>
     10    .gentext:before {
     11      content: "START"
     12    }
     13    .gentext:after {
     14      content: "END"
     15    }
     16  </style>
     17 
     18  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     19 
     20  <script type="application/javascript"
     21          src="../common.js"></script>
     22  <script type="application/javascript"
     23          src="../role.js"></script>
     24 
     25  <script type="application/javascript">
     26    function doTest() {
     27      // :before and :after pseudo styles
     28      var accTree = {
     29        role: ROLE_SECTION,
     30        children: [
     31          {
     32            role: ROLE_STATICTEXT,
     33            name: "START",
     34          },
     35          {
     36            role: ROLE_TEXT_LEAF,
     37            name: "MIDDLE",
     38          },
     39          {
     40            role: ROLE_STATICTEXT,
     41            name: "END",
     42          },
     43        ],
     44      };
     45 
     46      testAccessibleTree("gentext", accTree);
     47 
     48      SimpleTest.finish();
     49    }
     50 
     51    SimpleTest.waitForExplicitFinish();
     52    addA11yLoadEvent(doTest);
     53  </script>
     54 </head>
     55 <body>
     56 
     57  <a target="_blank"
     58     title="Clean up our tree walker"
     59     href="https://bugzilla.mozilla.org/show_bug.cgi?id=530081">
     60    Mozilla Bug 530081
     61  </a>
     62  <p id="display"></p>
     63  <div id="content" style="display: none"></div>
     64  <pre id="test">
     65  </pre>
     66 
     67  <div class="gentext" id="gentext">MIDDLE</div>
     68 </body>
     69 </html>