test_struct_tree.xhtml (2038B)
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="Table accessible tree and table interface tests for XUL trees"> 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="../role.js" /> 20 <script type="application/javascript" 21 src="../table.js" /> 22 23 <script type="application/javascript"> 24 <![CDATA[ 25 //////////////////////////////////////////////////////////////////////////// 26 // Test 27 28 // gA11yEventDumpID = "debug"; 29 30 function doTest() 31 { 32 var cellsArray = [ 33 [kDataCell, kDataCell], 34 [kDataCell, kDataCell], 35 [kDataCell, kDataCell] 36 ]; 37 38 testTableStruct("table", cellsArray, kTreeColumnHeader); 39 40 SimpleTest.finish(); 41 } 42 43 SimpleTest.waitForExplicitFinish(); 44 addA11yXULTreeLoadEvent(doTest, "table", new nsTableTreeView(3)); 45 ]]> 46 </script> 47 48 <hbox flex="1" style="overflow: auto;"> 49 <body xmlns="http://www.w3.org/1999/xhtml"> 50 <a target="_blank" 51 href="https://bugzilla.mozilla.org/show_bug.cgi?id=512424" 52 title="implement IAccessibleTable2"> 53 Mozilla Bug 512424 54 </a><br/> 55 <p id="display"></p> 56 <div id="content" style="display: none"> 57 </div> 58 <pre id="test"> 59 </pre> 60 </body> 61 62 <vbox id="debug"/> 63 <tree id="table" flex="1"> 64 <treecols> 65 <treecol id="col" flex="1" label="column"/> 66 <treecol id="scol" flex="1" label="column 2"/> 67 </treecols> 68 <treechildren id="treechildren"/> 69 </tree> 70 </hbox> 71 72 </window>