accessible/tests/mochitest/value/test_number.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/value/test_number.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +<html>
     1.5 +
     1.6 +<head>
     1.7 +  <title>nsIAccessible value testing for input@type=range element</title>
     1.8 +
     1.9 +  <link rel="stylesheet" type="text/css"
    1.10 +        href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    1.11 +
    1.12 +  <script type="application/javascript"
    1.13 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.14 +
    1.15 +  <script type="application/javascript"
    1.16 +          src="../common.js"></script>
    1.17 +  <script type="application/javascript"
    1.18 +          src="../value.js"></script>
    1.19 +
    1.20 +  <script type="application/javascript"
    1.21 +          src="chrome://mochikit/content/chrome-harness.js"></script>
    1.22 +
    1.23 +  <script type="application/javascript">
    1.24 +    function doTest()
    1.25 +    {
    1.26 +      // HTML5 number element tests
    1.27 +      testValue("number", "", 0, 0, 0, 1);
    1.28 +      testValue("number_value", "1", 1, 0, 0, 1);
    1.29 +      testValue("number_step", "", 0, 0, 0, 1);
    1.30 +      testValue("number_min42", "", 0, 42, 0, 1);
    1.31 +      testValue("number_max42", "", 0, 0, 42, 1);
    1.32 +
    1.33 +      SimpleTest.finish();
    1.34 +    }
    1.35 +
    1.36 +    SimpleTest.waitForExplicitFinish();
    1.37 +    addA11yLoadEvent(doTest);
    1.38 +  </script>
    1.39 +
    1.40 +</head>
    1.41 +
    1.42 +<body>
    1.43 +
    1.44 +  <a target="_blank"
    1.45 +     href="https://bugzilla.mozilla.org/show_bug.cgi?id=559761"
    1.46 +     title="make HTML5 input@type=number element accessible">
    1.47 +    Bug 559761
    1.48 +  </a>
    1.49 +  <p id="display"></p>
    1.50 +  <div id="content" style="display: none">
    1.51 +  </div>
    1.52 +  <pre id="test">
    1.53 +  </pre>
    1.54 +
    1.55 +  <!-- HTML5 input@type=number element -->
    1.56 +  <input type="number" id="number">
    1.57 +  <input type="number" id="number_value" value="1">
    1.58 +  <input type="number" id="number_step" step="1">
    1.59 +  <input type="number" id="number_min42" min="42">
    1.60 +  <input type="number" id="number_max42" max="42">
    1.61 +</body>
    1.62 +</html>

mercurial