accessible/tests/mochitest/role/test_aria.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     4                  type="text/css"?>
     6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     7         title="Accessibility Name Calculating Test.">
     9   <script type="application/javascript"
    10           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
    12   <script type="application/javascript"
    13           src="../common.js"></script>
    15   <script type="application/javascript">
    16   <![CDATA[
    17     function doTest()
    18     {
    19       ok(!isAccessible("presentation_label"),
    20                       "Presentation label shouldn't be accessible.");
    21       ok(!isAccessible("presentation_descr"),
    22                       "Presentation description shouldn't be accessible.");
    24       SimpleTest.finish();
    25     }
    27     SimpleTest.waitForExplicitFinish();
    28     addA11yLoadEvent(doTest);
    29   ]]>
    30   </script>
    32   <hbox flex="1" style="overflow: auto;">
    34   <body xmlns="http://www.w3.org/1999/xhtml">
    35     <a target="_blank"
    36        href="https://bugzilla.mozilla.org/show_bug.cgi?id=494345"
    37        title="Do not create accessibles for XUL label or description having a role of 'presentation'">
    38       Mozilla Bug 494345
    39     </a>
    40   <p id="display"></p>
    41     <div id="content" style="display: none">
    42     </div>
    43     <pre id="test">
    44     </pre>
    45   </body>
    47   <vbox flex="1">
    48     <label id="presentation_label" role="presentation" value="label"/>
    49     <description id="presentation_descr" role="presentation" value="description"/>
    50   </vbox>
    53   </hbox>  
    54 </window>

mercurial