accessible/tests/mochitest/role/test_aria.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/role/test_aria.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     1.7 +                 type="text/css"?>
     1.8 +
     1.9 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.10 +        title="Accessibility Name Calculating Test.">
    1.11 +
    1.12 +  <script type="application/javascript"
    1.13 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
    1.14 +
    1.15 +  <script type="application/javascript"
    1.16 +          src="../common.js"></script>
    1.17 +
    1.18 +  <script type="application/javascript">
    1.19 +  <![CDATA[
    1.20 +    function doTest()
    1.21 +    {
    1.22 +      ok(!isAccessible("presentation_label"),
    1.23 +                      "Presentation label shouldn't be accessible.");
    1.24 +      ok(!isAccessible("presentation_descr"),
    1.25 +                      "Presentation description shouldn't be accessible.");
    1.26 +
    1.27 +      SimpleTest.finish();
    1.28 +    }
    1.29 +
    1.30 +    SimpleTest.waitForExplicitFinish();
    1.31 +    addA11yLoadEvent(doTest);
    1.32 +  ]]>
    1.33 +  </script>
    1.34 +
    1.35 +  <hbox flex="1" style="overflow: auto;">
    1.36 +
    1.37 +  <body xmlns="http://www.w3.org/1999/xhtml">
    1.38 +    <a target="_blank"
    1.39 +       href="https://bugzilla.mozilla.org/show_bug.cgi?id=494345"
    1.40 +       title="Do not create accessibles for XUL label or description having a role of 'presentation'">
    1.41 +      Mozilla Bug 494345
    1.42 +    </a>
    1.43 +  <p id="display"></p>
    1.44 +    <div id="content" style="display: none">
    1.45 +    </div>
    1.46 +    <pre id="test">
    1.47 +    </pre>
    1.48 +  </body>
    1.49 +
    1.50 +  <vbox flex="1">
    1.51 +    <label id="presentation_label" role="presentation" value="label"/>
    1.52 +    <description id="presentation_descr" role="presentation" value="description"/>
    1.53 +  </vbox>
    1.54 +
    1.55 +  
    1.56 +  </hbox>  
    1.57 +</window>
    1.58 +

mercurial