mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
|
@ -36,6 +36,8 @@
|
|||
</table>
|
||||
<table id="table4" style="display:none">
|
||||
</table>
|
||||
<table id="table5" style="display:none">
|
||||
</table>
|
||||
<script>
|
||||
test(function () {
|
||||
var table0 = document.getElementById('table0');
|
||||
|
@ -81,6 +83,18 @@
|
|||
table4.deleteCaption();
|
||||
assert_equals(caption.parentNode, table4);
|
||||
}, "deleteCaption method not remove caption that is not in html namespace")
|
||||
test(function() {
|
||||
var table5 = document.getElementById('table5');
|
||||
var caption = document.createElement('caption');
|
||||
caption.appendChild(table5)
|
||||
|
||||
// Node cannot be inserted at the specified point in the hierarchy
|
||||
assert_throws("HierarchyRequestError", function() {
|
||||
table5.caption = caption;
|
||||
});
|
||||
|
||||
assert_not_equals(table5.caption, caption);
|
||||
}, "Setting caption rethrows exception");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -37,6 +37,15 @@ test(function() {
|
|||
assert_equals(t.tFoot.previousSibling, tbody2);
|
||||
assert_equals(t.tFoot.nextSibling, null);
|
||||
|
||||
t.deleteTFoot();
|
||||
assert_equals(t.tFoot, null);
|
||||
|
||||
t.tFoot = tfoot;
|
||||
assert_equals(t.tFoot, tfoot);
|
||||
|
||||
assert_equals(t.tFoot.previousSibling, tbody2);
|
||||
assert_equals(t.tFoot.nextSibling, null);
|
||||
|
||||
assert_throws(new TypeError(), function(){
|
||||
t.tFoot = document.createElement("div");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue