accessible/tests/mochitest/name/test_svg.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/name/test_svg.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +<html>
     1.5 +
     1.6 +<head>
     1.7 +  <title>Accessible name and description for SVG elements</title>
     1.8 +  <link rel="stylesheet" type="text/css"
     1.9 +        href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    1.10 +
    1.11 +  <script type="application/javascript"
    1.12 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +
    1.14 +  <script type="application/javascript"
    1.15 +          src="../common.js"></script>
    1.16 +  <script type="application/javascript"
    1.17 +          src="../name.js"></script>
    1.18 +
    1.19 +  <script type="application/javascript">
    1.20 +
    1.21 +    function doTest()
    1.22 +    {
    1.23 +      testName("svg1", "A name");
    1.24 +      testDescr("svg1", "A description");
    1.25 +      testName("svg2", "A tooltip");
    1.26 +      testDescr("svg2", "");
    1.27 +
    1.28 +      SimpleTest.finish();
    1.29 +    }
    1.30 +
    1.31 +    SimpleTest.waitForExplicitFinish();
    1.32 +    addA11yLoadEvent(doTest);
    1.33 +  </script>
    1.34 +
    1.35 +</head>
    1.36 +
    1.37 +<body>
    1.38 +
    1.39 +  <a target="_blank"
    1.40 +     href="https://bugzilla.mozilla.org/show_bug.cgi?id=459357"
    1.41 +     title="Support accessible name computation for SVG">
    1.42 +    Mozilla Bug 459357
    1.43 +  </a>
    1.44 +  <p id="display"></p>
    1.45 +  <div id="content" style="display: none"></div>
    1.46 +  <pre id="test">
    1.47 +  </pre>
    1.48 +
    1.49 +  <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg1">
    1.50 +    <title>A name</title>
    1.51 +    <desc>A description</title>
    1.52 +  </svg>
    1.53 +
    1.54 +  <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg2">
    1.55 +    <desc>A tooltip</desc>
    1.56 +  </svg>
    1.57 +</body>
    1.58 +</html>

mercurial