mirror of
https://github.com/servo/servo
synced 2026-04-30 11:27:28 +02:00
Implement deleteRow and insertRow for <table> element
Continued from #6936
This commit is contained in:
@@ -35,6 +35,12 @@ test(function () {
|
||||
assert_equals(tbody.rows.length, 4);
|
||||
}, "HTMLTableSectionElement insertRow()");
|
||||
|
||||
test(function () {
|
||||
var trEle = tbody.insertRow(tbody.rows.length);
|
||||
assert_equals(tbody.rows[tbody.rows.length - 1], trEle);
|
||||
assert_equals(tbody.rows.length, 5);
|
||||
}, "HTMLTableSectionElement insertRow(rows.length)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
tbody.insertRow(-2);
|
||||
|
||||
Reference in New Issue
Block a user