1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/tests/mochitest/table/test_indexes_tree.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,71 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> 1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" 1.7 + type="text/css"?> 1.8 + 1.9 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.10 + title="Accessible Table indexes tests"> 1.11 + 1.12 + <script type="application/javascript" 1.13 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> 1.14 + 1.15 + <script type="application/javascript" 1.16 + src="../treeview.js" /> 1.17 + 1.18 + <script type="application/javascript" 1.19 + src="../common.js" /> 1.20 + <script type="application/javascript" 1.21 + src="../events.js" /> 1.22 + <script type="application/javascript" 1.23 + src="../table.js" /> 1.24 + 1.25 + <script type="application/javascript"> 1.26 + <![CDATA[ 1.27 + //////////////////////////////////////////////////////////////////////////// 1.28 + // Test 1.29 + 1.30 + // gA11yEventDumpID = "debug"; 1.31 + 1.32 + function doTest() 1.33 + { 1.34 + var idxes = [ 1.35 + [0, 1], 1.36 + [2, 3], 1.37 + [4, 5] 1.38 + ]; 1.39 + testTableIndexes("tree", idxes); 1.40 + 1.41 + SimpleTest.finish(); 1.42 + } 1.43 + 1.44 + SimpleTest.waitForExplicitFinish(); 1.45 + addA11yXULTreeLoadEvent(doTest, "tree", new nsTableTreeView(3)); 1.46 + ]]> 1.47 + </script> 1.48 + 1.49 + <hbox flex="1" style="overflow: auto;"> 1.50 + <body xmlns="http://www.w3.org/1999/xhtml"> 1.51 + <a target="_blank" 1.52 + href="https://bugzilla.mozilla.org/show_bug.cgi?id=503727" 1.53 + title="Reorganize implementation of XUL tree accessibility"> 1.54 + Mozilla Bug 503727 1.55 + </a><br/> 1.56 + <p id="display"></p> 1.57 + <div id="content" style="display: none"> 1.58 + </div> 1.59 + <pre id="test"> 1.60 + </pre> 1.61 + </body> 1.62 + 1.63 + <vbox id="debug"/> 1.64 + <tree id="tree" flex="1"> 1.65 + <treecols> 1.66 + <treecol id="col" flex="1" primary="true" label="column"/> 1.67 + <treecol id="scol" flex="1" label="column 2"/> 1.68 + </treecols> 1.69 + <treechildren id="treechildren"/> 1.70 + </tree> 1.71 + </hbox> 1.72 + 1.73 +</window> 1.74 +