OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("This test should trigger exceptions on HTMLTableRowElement,
and verify that the messages are reasonably helpful."); | 8 description("This test should trigger exceptions on HTMLTableRowElement,
and verify that the messages are reasonably helpful."); |
9 | 9 |
10 var tr = document.createElement('tr'); | 10 var tr = document.createElement('tr'); |
11 | 11 |
12 shouldThrow("tr.insertCell(-2)"); | 12 shouldThrow("tr.insertCell(-2)"); |
13 shouldThrow("tr.insertCell(1)"); | 13 shouldThrow("tr.insertCell(1)"); |
14 | 14 |
15 tr.insertCell(); | 15 tr.insertCell(); |
16 | 16 |
17 shouldThrow("tr.deleteCell(-2)"); | 17 shouldThrow("tr.deleteCell(-2)"); |
18 shouldThrow("tr.deleteCell(2)"); | 18 shouldThrow("tr.deleteCell(2)"); |
| 19 shouldThrow("tr.deleteCell()"); |
19 </script> | 20 </script> |
20 </body> | 21 </body> |
21 </html> | 22 </html> |
OLD | NEW |