mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
|
@ -42,9 +42,23 @@ test(function() {
|
|||
assert_equals(old_length, el.rows.length);
|
||||
}, "check normal deleteRow");
|
||||
test(function() {
|
||||
while (el.rows.length > 1) {
|
||||
assert_equals(el.rows.length, 3);
|
||||
do {
|
||||
var old_length = el.rows.length;
|
||||
el.deleteRow(-1);
|
||||
}
|
||||
assert_equals(1, el.rows.length);
|
||||
assert_equals(el.rows.length, old_length - 1);
|
||||
} while (el.rows.length);
|
||||
}, "check normal deleteRow bis");
|
||||
|
||||
test(function() {
|
||||
assert_equals(el.rows.length, 0);
|
||||
el.deleteRow(-1);
|
||||
}, 'deleteRow(-1) with no rows');
|
||||
|
||||
test(function() {
|
||||
assert_equals(el.rows.length, 0);
|
||||
assert_throws("IndexSizeError", function() {
|
||||
el.deleteRow(0);
|
||||
});
|
||||
}, 'deleteRow(0) with no rows');
|
||||
</script>
|
||||
|
|
|
@ -51,4 +51,11 @@ test(function () {
|
|||
assert_equals(tbody.rows.length, 0);
|
||||
}, "HTMLTableSectionElement deleteRow(-1) with no rows");
|
||||
|
||||
test(function () {
|
||||
assert_equals(tbody.rows.length, 0);
|
||||
assert_throws("IndexSizeError", function () {
|
||||
tbody.deleteRow(0);
|
||||
});
|
||||
}, "HTMLTableSectionElement deleteRow(0) with no rows");
|
||||
|
||||
</script>
|
||||
|
|
|
@ -51,4 +51,11 @@ test(function () {
|
|||
assert_equals(tr.cells.length, 0);
|
||||
}, "HTMLTableRowElement deleteCell(-1) with no cells");
|
||||
|
||||
test(function () {
|
||||
assert_equals(tr.cells.length, 0);
|
||||
assert_throws("IndexSizeError", function () {
|
||||
tr.deleteCell(0);
|
||||
});
|
||||
}, "HTMLTableRowElement deleteCell(0) with no cells");
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue