Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/caption-methods.html

Issue 2212873003: W3C auto test importer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/caption-methods.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/caption-methods.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/caption-methods.html
index 79546eb594637beae956c6eeea554a535d44da44..35ee9f44530338fefc6062b704500cd6172a1d47 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/caption-methods.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/caption-methods.html
@@ -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>

Powered by Google App Engine
This is Rietveld 408576698