|
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"?> |
|
5 |
|
6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
7 title="Accessibility Name Calculating Test."> |
|
8 |
|
9 <script type="application/javascript" |
|
10 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
|
11 |
|
12 <script type="application/javascript" |
|
13 src="../common.js"></script> |
|
14 |
|
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."); |
|
23 |
|
24 SimpleTest.finish(); |
|
25 } |
|
26 |
|
27 SimpleTest.waitForExplicitFinish(); |
|
28 addA11yLoadEvent(doTest); |
|
29 ]]> |
|
30 </script> |
|
31 |
|
32 <hbox flex="1" style="overflow: auto;"> |
|
33 |
|
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> |
|
46 |
|
47 <vbox flex="1"> |
|
48 <label id="presentation_label" role="presentation" value="label"/> |
|
49 <description id="presentation_descr" role="presentation" value="description"/> |
|
50 </vbox> |
|
51 |
|
52 |
|
53 </hbox> |
|
54 </window> |
|
55 |