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