tor-browser

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

test_controls.html (1554B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <title>HTML control states</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  <script type="application/javascript"
     15          src="../states.js"></script>
     16 
     17  <script type="application/javascript">
     18  function doTest() {
     19    // Undetermined progressbar (no value or aria-value attribute): mixed state
     20    testStates("progress", STATE_MIXED);
     21    // Determined progressbar (has value): shouldn't have mixed state
     22    testStates("progress2", 0, 0, STATE_MIXED);
     23    // Determined progressbar (has aria-value): shouldn't have mixed state
     24    // testStates("progress3", 0, 0, STATE_MIXED);
     25    todo(false, "we should respect ARIA");
     26 
     27    SimpleTest.finish();
     28  }
     29 
     30  SimpleTest.waitForExplicitFinish();
     31  addA11yLoadEvent(doTest);
     32  </script>
     33 </head>
     34 
     35 <body>
     36  <a target="_blank"
     37     href="https://bugzilla.mozilla.org/show_bug.cgi?id=670853"
     38     title="Bug 670853 - undetermined progressmeters should expose mixed state">
     39    Mozilla Bug 670853
     40  </a>
     41  <p id="display"></p>
     42  <div id="content" style="display: none"></div>
     43  <pre id="test">
     44  </pre>
     45 
     46  <progress id="progress"></progress>
     47  <progress id="progress2" value="1"></progress>
     48  <progress id="progress3" aria-valuenow="1"></progress>
     49  
     50 </body>
     51 </html>