1 Testcase for bug http://webkit.org/b/93738 . The testcase checks if the cellIndex of a table cell(td/th) is correct when the cell is inside different parents.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 The cellIndex of a table cell (td/th) must be -1 if its parent is other than a table row. Otherwise the cellIndex must be a value greater than or equal to 0.
7 PASS th_with_no_parent.cellIndex is -1
8 PASS td_with_no_parent.cellIndex is -1
9 PASS th_with_table_parent.cellIndex is -1
10 PASS td_with_table_parent.cellIndex is -1
11 PASS th_with_thead_parent.cellIndex is -1
12 PASS td_with_thead_parent.cellIndex is -1
13 PASS th_with_tbody_parent.cellIndex is -1
14 PASS td_with_tbody_parent.cellIndex is -1
15 PASS th_with_tfoot_parent.cellIndex is -1
16 PASS td_with_table_parent.cellIndex is -1
17 PASS first_cell_th_with_tr_parent.cellIndex is 0
18 PASS second_cell_td_with_tr_parent.cellIndex is 1
19 PASS successfullyParsed is true