OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
3 <title>HTMLTableSectionElement#deleteRow</title> | 3 <title>HTMLTableSectionElement#deleteRow</title> |
4 <link rel="author" title="Intel" href="http://www.intel.com/"> | 4 <link rel="author" title="Intel" href="http://www.intel.com/"> |
5 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
6 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
7 | 7 |
8 <div id ="log"></div> | 8 <div id ="log"></div> |
9 | 9 |
10 <table> | 10 <table> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 }, "HTMLTableSectionElement deleteRow(-2)"); | 44 }, "HTMLTableSectionElement deleteRow(-2)"); |
45 | 45 |
46 test(function () { | 46 test(function () { |
47 assert_equals(tbody.rows.length, 1); | 47 assert_equals(tbody.rows.length, 1); |
48 tbody.deleteRow(-1); | 48 tbody.deleteRow(-1); |
49 assert_equals(tbody.rows.length, 0); | 49 assert_equals(tbody.rows.length, 0); |
50 tbody.deleteRow(-1); | 50 tbody.deleteRow(-1); |
51 assert_equals(tbody.rows.length, 0); | 51 assert_equals(tbody.rows.length, 0); |
52 }, "HTMLTableSectionElement deleteRow(-1) with no rows"); | 52 }, "HTMLTableSectionElement deleteRow(-1) with no rows"); |
53 | 53 |
| 54 test(function () { |
| 55 assert_equals(tbody.rows.length, 0); |
| 56 assert_throws("IndexSizeError", function () { |
| 57 tbody.deleteRow(0); |
| 58 }); |
| 59 }, "HTMLTableSectionElement deleteRow(0) with no rows"); |
| 60 |
54 </script> | 61 </script> |
OLD | NEW |