tor-browser

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

test_number.html (1563B)


      1 <html>
      2 
      3 <head>
      4  <title>nsIAccessible value testing for input@type=range element</title>
      5 
      6  <link rel="stylesheet" type="text/css"
      7        href="chrome://mochikit/content/tests/SimpleTest/test.css" />
      8 
      9  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     10 
     11  <script type="application/javascript"
     12          src="../common.js"></script>
     13  <script type="application/javascript"
     14          src="../value.js"></script>
     15 
     16  <script src="chrome://mochikit/content/chrome-harness.js"></script>
     17 
     18  <script type="application/javascript">
     19    function doTest() {
     20      // HTML5 number element tests
     21      testValue("number", "", 0, 0, 0, 1);
     22      testValue("number_value", "1", 1, 0, 0, 1);
     23      testValue("number_step", "", 0, 0, 0, 1);
     24      testValue("number_min42", "", 0, 42, 0, 1);
     25      testValue("number_max42", "", 0, 0, 42, 1);
     26 
     27      SimpleTest.finish();
     28    }
     29 
     30    SimpleTest.waitForExplicitFinish();
     31    addA11yLoadEvent(doTest);
     32  </script>
     33 
     34 </head>
     35 
     36 <body>
     37 
     38  <a target="_blank"
     39     href="https://bugzilla.mozilla.org/show_bug.cgi?id=559761"
     40     title="make HTML5 input@type=number element accessible">
     41    Bug 559761
     42  </a>
     43  <p id="display"></p>
     44  <div id="content" style="display: none">
     45  </div>
     46  <pre id="test">
     47  </pre>
     48 
     49  <!-- HTML5 input@type=number element -->
     50  <input type="number" id="number">
     51  <input type="number" id="number_value" value="1">
     52  <input type="number" id="number_step" step="1">
     53  <input type="number" id="number_min42" min="42">
     54  <input type="number" id="number_max42" max="42">
     55 </body>
     56 </html>