accessible/tests/mochitest/table/test_indexes_ariagrid.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>Table indexes for ARIA grid tests</title>
michael@0 5 <link rel="stylesheet" type="text/css"
michael@0 6 href="chrome://mochikit/content/tests/SimpleTest/test.css" />
michael@0 7
michael@0 8 <script type="application/javascript"
michael@0 9 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
michael@0 10
michael@0 11 <script type="application/javascript"
michael@0 12 src="../common.js"></script>
michael@0 13 <script type="application/javascript"
michael@0 14 src="../attributes.js"></script>
michael@0 15 <script type="application/javascript"
michael@0 16 src="../table.js"></script>
michael@0 17
michael@0 18 <script type="application/javascript">
michael@0 19 function doTest()
michael@0 20 {
michael@0 21 //////////////////////////////////////////////////////////////////////////
michael@0 22 // ARIA grid
michael@0 23 var idxes = [
michael@0 24 [0, 1, 2],
michael@0 25 [3, 4, 5],
michael@0 26 [6, 7, 8],
michael@0 27 [9, 10, 11]
michael@0 28 ];
michael@0 29 testTableIndexes("grid", idxes);
michael@0 30
michael@0 31 idxes = [
michael@0 32 [0, 1, 2],
michael@0 33 [3, 4, 5],
michael@0 34 [6, 7, 8],
michael@0 35 [9, 10, 11]
michael@0 36 ];
michael@0 37 testTableIndexes("grid-rowgroups", idxes);
michael@0 38
michael@0 39 //////////////////////////////////////////////////////////////////////////
michael@0 40 // a bit crazy ARIA grid
michael@0 41 idxes = [
michael@0 42 [0, 1],
michael@0 43 [2, 3]
michael@0 44 ];
michael@0 45 testTableIndexes("grid2", idxes);
michael@0 46
michael@0 47 SimpleTest.finish();
michael@0 48 }
michael@0 49
michael@0 50 SimpleTest.waitForExplicitFinish();
michael@0 51 addA11yLoadEvent(doTest);
michael@0 52 </script>
michael@0 53 </head>
michael@0 54 <body>
michael@0 55
michael@0 56 <a target="_blank"
michael@0 57 href="https://bugzilla.mozilla.org/show_bug.cgi?id=386813"
michael@0 58 title="support nsIAccessibleTable on ARIA grid/treegrid">Mozilla Bug 386813</a>
michael@0 59 <a target="_blank"
michael@0 60 title="nsHTMLTableCellAccessible is used in dojo's crazy ARIA grid"
michael@0 61 href="https://bugzilla.mozilla.org/show_bug.cgi?id=513848">Mozilla Bug 513848</a>
michael@0 62 <a target="_blank"
michael@0 63 title="ARIA grid with rowgroup breaks table row/col counting and indices"
michael@0 64 href="https://bugzilla.mozilla.org/show_bug.cgi?id=761853">Mozilla Bug 761853</a>
michael@0 65
michael@0 66 <p id="display"></p>
michael@0 67 <div id="content" style="display: none"></div>
michael@0 68 <pre id="test">
michael@0 69 </pre>
michael@0 70
michael@0 71 <div role="grid" id="grid">
michael@0 72 <div role="row">
michael@0 73 <span role="columnheader">column1</span>
michael@0 74 <span role="columnheader">column2</span>
michael@0 75 <span role="columnheader">column3</span>
michael@0 76 </div>
michael@0 77 <div role="row">
michael@0 78 <span role="rowheader">row1</span>
michael@0 79 <span role="gridcell">cell1</span>
michael@0 80 <span role="gridcell">cell2</span>
michael@0 81 </div>
michael@0 82 <div role="row">
michael@0 83 <span role="rowheader">row2</span>
michael@0 84 <span role="gridcell">cell3</span>
michael@0 85 <span role="gridcell">cell4</span>
michael@0 86 </div>
michael@0 87 <div role="row">
michael@0 88 <span role="rowheader">row3</span>
michael@0 89 <span role="gridcell">cell5</span>
michael@0 90 <span role="gridcell">cell6</span>
michael@0 91 </div>
michael@0 92 </div>
michael@0 93
michael@0 94 <div role="grid" id="grid-rowgroups">
michael@0 95 <div role="row">
michael@0 96 <span role="columnheader">grid-rowgroups-col1</span>
michael@0 97 <span role="columnheader">grid-rowgroups-col2</span>
michael@0 98 <span role="columnheader">grid-rowgroups-col3</span>
michael@0 99 </div>
michael@0 100 <div role="rowgroup">
michael@0 101 <div role="row">
michael@0 102 <span role="rowheader">grid-rowgroups-row1</span>
michael@0 103 <span role="gridcell">grid-rowgroups-cell1</span>
michael@0 104 <span role="gridcell">grid-rowgroups-cell2</span>
michael@0 105 </div>
michael@0 106 <div role="row">
michael@0 107 <span role="rowheader">grid-rowgroups-row2</span>
michael@0 108 <span role="gridcell">grid-rowgroups-cell3</span>
michael@0 109 <span role="gridcell">grid-rowgroups-cell4</span>
michael@0 110 </div>
michael@0 111 </div>
michael@0 112 <div role="row">
michael@0 113 <span role="rowheader">grid-rowgroups-row3</span>
michael@0 114 <span role="gridcell">grid-rowgroups-cell5</span>
michael@0 115 <span role="gridcell">grid-rowgroups-cell6</span>
michael@0 116 </div>
michael@0 117 </div>
michael@0 118
michael@0 119 <div role="grid" id="grid2">
michael@0 120 <div role="row">
michael@0 121 <table role="presentation">
michael@0 122 <tr>
michael@0 123 <td role="columnheader">header1</td>
michael@0 124 <td role="columnheader">header2</td>
michael@0 125 </tr>
michael@0 126 </table>
michael@0 127 </div>
michael@0 128 <div role="row">
michael@0 129 <table role="presentation">
michael@0 130 <tr>
michael@0 131 <td role="gridcell">cell1</td>
michael@0 132 <td role="gridcell" tabindex="-1">cell2</td>
michael@0 133 </tr>
michael@0 134 </table>
michael@0 135 </div>
michael@0 136 </div>
michael@0 137
michael@0 138 </body>
michael@0 139 </html>

mercurial