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