mirror of
https://github.com/servo/servo
synced 2026-04-30 03:17:15 +02:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user