| 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="../../resources/js-test.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 |
| 11 debug('The cellIndex of a table cell (td/th) must be -1 if its parent is other t
han a table row. Otherwise \ | 11 debug('The cellIndex of a table cell (td/th) must be -1 if its parent is other t
han a table row. Otherwise \ |
| 12 the cellIndex must be a value greater than or equal to 0.'); | 12 the cellIndex must be a value greater than or equal to 0.'); |
| 13 | 13 |
| 14 th_with_no_parent = document.createElement("th"); | 14 th_with_no_parent = document.createElement("th"); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 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 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |