Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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="Accessible XUL tabbox hierarchy tests"> |
michael@0 | 8 | |
michael@0 | 9 | <script type="application/javascript" |
michael@0 | 10 | src="chrome://mochikit/content/MochiKit/packed.js" /> |
michael@0 | 11 | <script type="application/javascript" |
michael@0 | 12 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
michael@0 | 13 | |
michael@0 | 14 | <script type="application/javascript" |
michael@0 | 15 | src="../common.js" /> |
michael@0 | 16 | <script type="application/javascript" |
michael@0 | 17 | src="../role.js" /> |
michael@0 | 18 | <script type="application/javascript" |
michael@0 | 19 | src="../states.js" /> |
michael@0 | 20 | |
michael@0 | 21 | <script type="application/javascript"> |
michael@0 | 22 | <![CDATA[ |
michael@0 | 23 | //////////////////////////////////////////////////////////////////////////// |
michael@0 | 24 | // Test |
michael@0 | 25 | |
michael@0 | 26 | function doTest() |
michael@0 | 27 | { |
michael@0 | 28 | testStates("tab1", 0, EXT_STATE_PINNED); |
michael@0 | 29 | testStates("tab2", 0, 0, 0, EXT_STATE_PINNED); |
michael@0 | 30 | testStates("tab3", 0, 0, 0, EXT_STATE_PINNED); |
michael@0 | 31 | |
michael@0 | 32 | SimpleTest.finish() |
michael@0 | 33 | } |
michael@0 | 34 | |
michael@0 | 35 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 36 | addA11yLoadEvent(doTest); |
michael@0 | 37 | ]]> |
michael@0 | 38 | </script> |
michael@0 | 39 | |
michael@0 | 40 | <hbox flex="1" style="overflow: auto;"> |
michael@0 | 41 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 42 | <a target="_blank" |
michael@0 | 43 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=577727" |
michael@0 | 44 | title="Make pinned tabs distinguishable from other tabs for accessibility"> |
michael@0 | 45 | Mozilla Bug 577727 |
michael@0 | 46 | </a><br/> |
michael@0 | 47 | <p id="display"></p> |
michael@0 | 48 | <div id="content" style="display: none"> |
michael@0 | 49 | </div> |
michael@0 | 50 | <pre id="test"> |
michael@0 | 51 | </pre> |
michael@0 | 52 | </body> |
michael@0 | 53 | |
michael@0 | 54 | <vbox flex="1"> |
michael@0 | 55 | <tabbox> |
michael@0 | 56 | <tabs id="tabs"> |
michael@0 | 57 | <tab id="tab1" label="tab1" pinned="true"/> |
michael@0 | 58 | <tab id="tab2" label="tab2" pinned="false"/> |
michael@0 | 59 | <tab id="tab3" label="tab3"/> |
michael@0 | 60 | </tabs> |
michael@0 | 61 | <tabpanels id="tabpanels"> |
michael@0 | 62 | <tabpanel/> |
michael@0 | 63 | <tabpanel/> |
michael@0 | 64 | </tabpanels> |
michael@0 | 65 | </tabbox> |
michael@0 | 66 | </vbox> |
michael@0 | 67 | </hbox> |
michael@0 | 68 | |
michael@0 | 69 | </window> |
michael@0 | 70 |