Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2de3b11
commit cf9fd7e
Showing
8 changed files
with
106 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
[Various fileBits] | ||
expected: FAIL | ||
bug: https://github.com/servo/servo/issues/10911 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
tests/wpt/metadata/dom/nodes/getElementsByClassName-21.htm.ini
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
tests/wpt/web-platform-tests/html/semantics/tabular-data/the-table-element/remove-row.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Delete Row tests</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
|
||
<table id="element"> | ||
<thead> | ||
<th>First column</th> | ||
<th>Second column</th> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>1.1</td> | ||
<td>1.2</td> | ||
</tr> | ||
<tr> | ||
<td>2.1</td> | ||
<td>2.2</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<script> | ||
var el = document.getElementById('element'); | ||
|
||
test(function() { | ||
assert_throws("IndexSizeError", function() { | ||
el.deleteRow(-2) | ||
}) | ||
}, 'deleteRow function invalid argument'); | ||
test(function() { | ||
assert_throws("IndexSizeError", function() { | ||
el.deleteRow(el.rows.length) | ||
}) | ||
}, 'deleteRow function invalid argument bis'); | ||
|
||
test(function() { | ||
var old_length = el.rows.length; | ||
el.insertRow(-1); | ||
el.deleteRow(-1); | ||
assert_equals(old_length, el.rows.length); | ||
}, "check normal deleteRow"); | ||
test(function() { | ||
while (el.rows.length > 1) { | ||
el.deleteRow(-1); | ||
} | ||
assert_equals(1, el.rows.length); | ||
}, "check normal deleteRow bis"); | ||
</script> |