accessible/tests/mochitest/name/test_svg.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <html>
michael@0 2
michael@0 3 <head>
michael@0 4 <title>Accessible name and description for SVG elements</title>
michael@0 5 <link rel="stylesheet" type="text/css"
michael@0 6 href="chrome://mochikit/content/tests/SimpleTest/test.css" />
michael@0 7
michael@0 8 <script type="application/javascript"
michael@0 9 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
michael@0 10
michael@0 11 <script type="application/javascript"
michael@0 12 src="../common.js"></script>
michael@0 13 <script type="application/javascript"
michael@0 14 src="../name.js"></script>
michael@0 15
michael@0 16 <script type="application/javascript">
michael@0 17
michael@0 18 function doTest()
michael@0 19 {
michael@0 20 testName("svg1", "A name");
michael@0 21 testDescr("svg1", "A description");
michael@0 22 testName("svg2", "A tooltip");
michael@0 23 testDescr("svg2", "");
michael@0 24
michael@0 25 SimpleTest.finish();
michael@0 26 }
michael@0 27
michael@0 28 SimpleTest.waitForExplicitFinish();
michael@0 29 addA11yLoadEvent(doTest);
michael@0 30 </script>
michael@0 31
michael@0 32 </head>
michael@0 33
michael@0 34 <body>
michael@0 35
michael@0 36 <a target="_blank"
michael@0 37 href="https://bugzilla.mozilla.org/show_bug.cgi?id=459357"
michael@0 38 title="Support accessible name computation for SVG">
michael@0 39 Mozilla Bug 459357
michael@0 40 </a>
michael@0 41 <p id="display"></p>
michael@0 42 <div id="content" style="display: none"></div>
michael@0 43 <pre id="test">
michael@0 44 </pre>
michael@0 45
michael@0 46 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg1">
michael@0 47 <title>A name</title>
michael@0 48 <desc>A description</title>
michael@0 49 </svg>
michael@0 50
michael@0 51 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg2">
michael@0 52 <desc>A tooltip</desc>
michael@0 53 </svg>
michael@0 54 </body>
michael@0 55 </html>

mercurial