mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
227 lines
5.1 KiB
HTML
227 lines
5.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=410052
|
|
-->
|
|
<head>
|
|
<title>Table indexes chrome tests</title>
|
|
<link rel="stylesheet" type="text/css"
|
|
href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
|
|
|
<script type="application/javascript"
|
|
src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
|
<script type="application/javascript"
|
|
src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<script type="application/javascript"
|
|
src="chrome://mochikit/content/a11y/accessible/common.js"></script>
|
|
<script type="application/javascript"
|
|
src="chrome://mochikit/content/a11y/accessible/table.js"></script>
|
|
|
|
<script type="application/javascript">
|
|
function doTest()
|
|
{
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// table
|
|
var tRow = new Array(0,0,0,1,1,1,2,2,3,3);
|
|
var tCol = new Array(0,1,2,0,1,2,0,1,1,2);
|
|
|
|
testTableIndexes("table", 10, tRow, tCol);
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// tableinsane1
|
|
tRow = [0,0,0,1,1,1,2,2,3,3];
|
|
tCol = [0,1,2,0,1,2,0,1,1,2];
|
|
|
|
testTableIndexes("tableinsane1", 10, tRow, tCol);
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// tableinsane2
|
|
tRow = [0,0,0,1,1,1,2,2,3,3,4,4,4];
|
|
tCol = [0,1,2,0,1,2,0,1,1,2,1,3,4];
|
|
|
|
testTableIndexes("tableinsane2", 13, tRow, tCol);
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// tableinsane4
|
|
tRow = [0,0,0,1,1,1,2,2,3,4];
|
|
tCol = [0,1,2,0,1,2,0,2,0,0];
|
|
|
|
testTableIndexes("tableinsane4", 10, tRow, tCol);
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// tableborder
|
|
tRow = [0,0,0,1,1,1,2,2,3,3];
|
|
tCol = [0,1,2,0,1,2,0,1,1,2];
|
|
|
|
testTableIndexes("tableborder", 10, tRow, tCol);
|
|
|
|
SimpleTest.finish();
|
|
}
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
addLoadEvent(doTest);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=410052">Mozilla Bug 410052</a>
|
|
<p id="display"></p>
|
|
<div id="content" style="display: none"></div>
|
|
<pre id="test">
|
|
</pre>
|
|
|
|
<!--
|
|
If you change the structure of the table please make sure to change
|
|
the indexes count in 'for' statement in the script above.
|
|
-->
|
|
<table border="1" id="table">
|
|
<caption><strong><b><font size="29">this is a caption for this table</font></b></strong></caption>
|
|
<thead>
|
|
<tr>
|
|
<th>col1</th>
|
|
<th>col2</th>
|
|
<th>col3</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>2</td>
|
|
<td>3</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="0">4</td>
|
|
<td colspan="2">5</td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td>
|
|
<td>7</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table border="1" id="tableborder" style="border-collapse:collapse">
|
|
<caption><strong><b><font size="29">this is a caption for this bc table</font></b></strong></caption>
|
|
<thead>
|
|
<tr>
|
|
<th>col1</th>
|
|
<th>col2</th>
|
|
<th>col3</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>2</td>
|
|
<td>3</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2">4</td>
|
|
<td colspan="2">5</td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td>
|
|
<td>7</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table border="1" id="tableinsane1">
|
|
<caption>test empty row groups</caption>
|
|
<thead>
|
|
<tr>
|
|
<th>col1</th>
|
|
<th>col2</th>
|
|
<th>col3</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
<tbody></tbody>
|
|
<tbody></tbody>
|
|
<tbody>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>2</td>
|
|
<td>3</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2">4</td>
|
|
<td colspan="2">5</td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td>
|
|
<td>7</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table border="1" id="tableinsane2" >
|
|
<caption>empty rowgroup + empty rows</caption>
|
|
<thead>
|
|
<tr>
|
|
<th>col1</th>
|
|
<th>col2</th>
|
|
<th>col3</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr></tr></tbody>
|
|
<tbody></tbody>
|
|
<tbody></tbody>
|
|
<tbody>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>2</td>
|
|
<td>3</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="0">4</td>
|
|
<td colspan="0">5</td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td>
|
|
<td rowspan="0">7</td>
|
|
</tr>
|
|
<tr>
|
|
<td>8</td>
|
|
<td>9</td>
|
|
<td>10</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<table border="1" id="tableinsane4" >
|
|
<caption>test cellmap holes</caption>
|
|
<thead>
|
|
<tr>
|
|
<th>col1</th>
|
|
<th>col2</th>
|
|
<th>col3</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr></tr></tbody>
|
|
<tbody></tbody>
|
|
<tbody></tbody>
|
|
<tbody>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>2</td>
|
|
<td>3</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">4</td>
|
|
<td rowspan="2">5</td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">7</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|