OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Testcase for bug <a href="http://webkit.org/b/93738">http://webkit.
org/b/93738 </a>. \ | 8 description('Testcase for bug <a href="http://webkit.org/b/93738">http://webkit.
org/b/93738 </a>. \ |
9 The testcase checks if the cellIndex of a table cell(td/th) is correct when the
cell is inside different parents.'); | 9 The testcase checks if the cellIndex of a table cell(td/th) is correct when the
cell is inside different parents.'); |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 shouldBe('th_with_tfoot_parent.cellIndex', '-1'); | 39 shouldBe('th_with_tfoot_parent.cellIndex', '-1'); |
40 td_with_tfoot_parent = tfoot.appendChild(document.createElement("td")); | 40 td_with_tfoot_parent = tfoot.appendChild(document.createElement("td")); |
41 shouldBe('td_with_table_parent.cellIndex', '-1'); | 41 shouldBe('td_with_table_parent.cellIndex', '-1'); |
42 | 42 |
43 tr = document.createElement("tr"); | 43 tr = document.createElement("tr"); |
44 first_cell_th_with_tr_parent = tr.appendChild(document.createElement("th")); | 44 first_cell_th_with_tr_parent = tr.appendChild(document.createElement("th")); |
45 shouldBe('first_cell_th_with_tr_parent.cellIndex', '0'); | 45 shouldBe('first_cell_th_with_tr_parent.cellIndex', '0'); |
46 second_cell_td_with_tr_parent = tr.appendChild(document.createElement("td")); | 46 second_cell_td_with_tr_parent = tr.appendChild(document.createElement("td")); |
47 shouldBe('second_cell_td_with_tr_parent.cellIndex', '1'); | 47 shouldBe('second_cell_td_with_tr_parent.cellIndex', '1'); |
48 </script> | 48 </script> |
49 <script src="../js/resources/js-test-post.js"></script> | |
50 </body> | 49 </body> |
51 </html> | 50 </html> |
OLD | NEW |