Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
michael@0 | 3 | <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" |
michael@0 | 4 | type="text/css"?> |
michael@0 | 5 | |
michael@0 | 6 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 7 | title="Accessible Table selection tests"> |
michael@0 | 8 | |
michael@0 | 9 | <script type="application/javascript" |
michael@0 | 10 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
michael@0 | 11 | |
michael@0 | 12 | <script type="application/javascript" |
michael@0 | 13 | src="../treeview.js" /> |
michael@0 | 14 | |
michael@0 | 15 | <script type="application/javascript" |
michael@0 | 16 | src="../common.js" /> |
michael@0 | 17 | <script type="application/javascript" |
michael@0 | 18 | src="../events.js" /> |
michael@0 | 19 | <script type="application/javascript" |
michael@0 | 20 | src="../role.js" /> |
michael@0 | 21 | <script type="application/javascript" |
michael@0 | 22 | src="../states.js" /> |
michael@0 | 23 | <script type="application/javascript" |
michael@0 | 24 | src="../table.js" /> |
michael@0 | 25 | |
michael@0 | 26 | <script type="application/javascript"> |
michael@0 | 27 | <![CDATA[ |
michael@0 | 28 | //////////////////////////////////////////////////////////////////////////// |
michael@0 | 29 | // Test |
michael@0 | 30 | |
michael@0 | 31 | // gA11yEventDumpID = "debug"; |
michael@0 | 32 | |
michael@0 | 33 | function doTest() |
michael@0 | 34 | { |
michael@0 | 35 | var cellsArray = |
michael@0 | 36 | [ |
michael@0 | 37 | [false, false], |
michael@0 | 38 | [false, false], |
michael@0 | 39 | [false, false] |
michael@0 | 40 | ]; |
michael@0 | 41 | |
michael@0 | 42 | testTableSelection("tree", cellsArray); |
michael@0 | 43 | testSelectTableRow("tree", 0, cellsArray); |
michael@0 | 44 | testUnselectTableRow("tree", 0, cellsArray); |
michael@0 | 45 | |
michael@0 | 46 | SimpleTest.finish(); |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 50 | addA11yXULTreeLoadEvent(doTest, "tree", new nsTableTreeView(3)); |
michael@0 | 51 | ]]> |
michael@0 | 52 | </script> |
michael@0 | 53 | |
michael@0 | 54 | <hbox flex="1" style="overflow: auto;"> |
michael@0 | 55 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 56 | <a target="_blank" |
michael@0 | 57 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=503727" |
michael@0 | 58 | title="Reorganize implementation of XUL tree accessibility"> |
michael@0 | 59 | Mozilla Bug 503727 |
michael@0 | 60 | </a><br/> |
michael@0 | 61 | <p id="display"></p> |
michael@0 | 62 | <div id="content" style="display: none"> |
michael@0 | 63 | </div> |
michael@0 | 64 | <pre id="test"> |
michael@0 | 65 | </pre> |
michael@0 | 66 | </body> |
michael@0 | 67 | |
michael@0 | 68 | <vbox id="debug"/> |
michael@0 | 69 | <tree id="tree" flex="1"> |
michael@0 | 70 | <treecols> |
michael@0 | 71 | <treecol id="col" flex="1" primary="true" label="column"/> |
michael@0 | 72 | <treecol id="scol" flex="1" label="column 2"/> |
michael@0 | 73 | </treecols> |
michael@0 | 74 | <treechildren id="treechildren"/> |
michael@0 | 75 | </tree> |
michael@0 | 76 | </hbox> |
michael@0 | 77 | |
michael@0 | 78 | </window> |
michael@0 | 79 |