tor-browser

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

test_editablebody.html (1212B)


      1 <!DOCTYPE html>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=454997
      5 -->
      6 <head>
      7  <title>nsIAccessible states tests of contenteditable body</title>
      8  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
      9 
     10  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     11 
     12  <script type="application/javascript"
     13          src="../common.js"></script>
     14  <script type="application/javascript"
     15          src="../role.js"></script>
     16  <script type="application/javascript"
     17          src="../states.js"></script>
     18 
     19  <script type="application/javascript">
     20    function doTest() {
     21      testStates(document, 0, EXT_STATE_EDITABLE);
     22      testStates("p", 0, EXT_STATE_EDITABLE);
     23 
     24      SimpleTest.finish();
     25    }
     26 
     27    SimpleTest.waitForExplicitFinish();
     28    addA11yLoadEvent(doTest);
     29  </script>
     30 </head>
     31 
     32 <body contentEditable="true">
     33 
     34  <a target="_blank"
     35     title="nsIAccessible states tests of contenteditable body"
     36     href="https://bugzilla.mozilla.org/show_bug.cgi?id=454997">Mozilla Bug 454997</a>
     37  <p id="display"></p>
     38  <div id="content" style="display: none"></div>
     39  <pre id="test">
     40  </pre>
     41 
     42  <p id="p">hello</p>
     43 </body>
     44 </html>