accessible/tests/mochitest/tree/test_filectrl.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/tree/test_filectrl.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,58 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=483573
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>File Input Control tests</title>
    1.11 +  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    1.12 +
    1.13 +  <script type="application/javascript"
    1.14 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.15 +
    1.16 +  <script type="application/javascript"
    1.17 +          src="../common.js"></script>
    1.18 +  <script type="application/javascript"
    1.19 +          src="../role.js"></script>
    1.20 +
    1.21 +  <script type="application/javascript">
    1.22 +    function doTest()
    1.23 +    {
    1.24 +      var accTree = {
    1.25 +        role: ROLE_TEXT_CONTAINER,
    1.26 +        children: [
    1.27 +          {
    1.28 +            role: ROLE_PUSHBUTTON
    1.29 +          },
    1.30 +          {
    1.31 +            role: ROLE_LABEL,
    1.32 +            children: [
    1.33 +              {
    1.34 +                role: ROLE_TEXT_LEAF,
    1.35 +              }
    1.36 +            ],
    1.37 +          },
    1.38 +        ]
    1.39 +      };
    1.40 +      testAccessibleTree("filectrl", accTree);
    1.41 +
    1.42 +      SimpleTest.finish();
    1.43 +    }
    1.44 +
    1.45 +    SimpleTest.waitForExplicitFinish();
    1.46 +    addA11yLoadEvent(doTest);
    1.47 +  </script>
    1.48 +</head>
    1.49 +<body>
    1.50 +
    1.51 +  <a target="_blank"
    1.52 +     title="Expose HTML5 video and audio elements' embedded controls through accessibility APIs"
    1.53 +     href="https://bugzilla.mozilla.org/show_bug.cgi?id=483573">Mozilla Bug 483573</a>
    1.54 +  <p id="display"></p>
    1.55 +  <div id="content" style="display: none"></div>
    1.56 +  <pre id="test">
    1.57 +  </pre>
    1.58 +
    1.59 +  <input type="file" id="filectrl" />
    1.60 +</body>
    1.61 +</html>

mercurial