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