b=450088 backing out (new reftest failed)
[wine-gecko.git] / testing / mochitest / tests / test_bug1297.html
blob41b9bffba1d4830add059ad6565d39835ba49ab9
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1297
5 -->
6 <head>
7 <title>Test for Bug 1297</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1297">Mozilla Bug 1297</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
16 <table border=1>
17 <tr>
18 <td id="td1" onmousedown="alert(this.cellIndex)">cellIndex=0</td>
19 <td id="td2" onmousedown="alert(this.cellIndex)">cellIndex=1</td>
20 <td id="td3" onmousedown="alert(this.cellIndex)">cellIndex=2</td>
21 <tr id="tr1"
22 onmousedown="alert(this.rowIndex)"><td>rowIndex=1<td>rowIndex=1<td>rowIndex=1</t
24 <tr id="tr2"
25 onmousedown="alert(this.rowIndex)"><td>rowIndex=2<td>rowIndex=2<td>rowIndex=2</t
27 </tr>
28 </table>
29 </div>
30 <pre id="test">
31 <script class="testbody" type="text/javascript">
33 /** Test for Bug 1297 **/
34 is($('td1').cellIndex, 0, "cellIndex / rowIndex working td1");
35 is($('td2').cellIndex, 1, "cellIndex / rowIndex working td2");
36 is($('td3').cellIndex, 2, "cellIndex / rowIndex working td3");
37 is($('tr1').rowIndex, 1, "cellIndex / rowIndex working tr1");
38 is($('tr2').rowIndex, 2, "cellIndex / rowIndex working tr2");
43 </script>
44 </pre>
45 </body>
46 </html>