accessible/tests/mochitest/value/test_range.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/value/test_range.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 progress element tests
    1.27 +      testValue("range", "50", 50, 0, 100, 1);
    1.28 +      testValue("range_value", "1", 1, 0, 100, 1);
    1.29 +      testValue("range_step", "50", 50, 0, 100, 1);
    1.30 +      testValue("range_min42", "71", 71, 42, 100, 1);
    1.31 +      testValue("range_max42", "21", 21, 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=559764"
    1.46 +     title="make HTML5 input@type=range element accessible">
    1.47 +    Bug 559764
    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=range element -->
    1.56 +  <input type="range" id="range">
    1.57 +  <input type="range" id="range_value" value="1">
    1.58 +  <input type="range" id="range_step" step="1">
    1.59 +  <input type="range" id="range_min42" min="42">
    1.60 +  <input type="range" id="range_max42" max="42">
    1.61 +</body>
    1.62 +</html>

mercurial