Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d

This commit is contained in:
Ms2ger 2016-11-14 11:07:09 +01:00
parent 65dd6d4340
commit ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions

View file

@ -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>