test_indexes_tree.xhtml (1896B)
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 Table indexes tests"> 8 9 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> 10 11 <script type="application/javascript" 12 src="../treeview.js" /> 13 14 <script type="application/javascript" 15 src="../common.js" /> 16 <script type="application/javascript" 17 src="../events.js" /> 18 <script type="application/javascript" 19 src="../table.js" /> 20 21 <script type="application/javascript"> 22 <![CDATA[ 23 //////////////////////////////////////////////////////////////////////////// 24 // Test 25 26 // gA11yEventDumpID = "debug"; 27 28 function doTest() 29 { 30 var idxes = [ 31 [0, 1], 32 [2, 3], 33 [4, 5] 34 ]; 35 testTableIndexes("tree", idxes); 36 37 SimpleTest.finish(); 38 } 39 40 SimpleTest.waitForExplicitFinish(); 41 addA11yXULTreeLoadEvent(doTest, "tree", new nsTableTreeView(3)); 42 ]]> 43 </script> 44 45 <hbox flex="1" style="overflow: auto;"> 46 <body xmlns="http://www.w3.org/1999/xhtml"> 47 <a target="_blank" 48 href="https://bugzilla.mozilla.org/show_bug.cgi?id=503727" 49 title="Reorganize implementation of XUL tree accessibility"> 50 Mozilla Bug 503727 51 </a><br/> 52 <p id="display"></p> 53 <div id="content" style="display: none"> 54 </div> 55 <pre id="test"> 56 </pre> 57 </body> 58 59 <vbox id="debug"/> 60 <tree id="tree" flex="1"> 61 <treecols> 62 <treecol id="col" flex="1" primary="true" label="column"/> 63 <treecol id="scol" flex="1" label="column 2"/> 64 </treecols> 65 <treechildren id="treechildren"/> 66 </tree> 67 </hbox> 68 69 </window>