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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html

Issue 2785963002: Move tests for table elements to LayoutTests/html/tabular_data/. (Closed)
Patch Set: Created 3 years, 9 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/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html
deleted file mode 100644
index e8a61822ad766d56b021edf92bbf88ae918956a8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#dom-tr-insertcell">
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests that HTMLTableRowElement.insertCell() skips non &lt;td&gt; / &lt;th&gt; children.");
-
-var tr = document.createElement("tr");
-shouldBe("tr.__proto__", "HTMLTableRowElement.prototype");
-
-tr.appendChild(new Text("TEXT"));
-tr.appendChild(document.createElement("a"));
-tr.insertCell(-1).innerHTML = "1";
-// The insertCell() method must create a td element, insert it as a child of the
-// tr element, immediately before the indexth td or th element in the cells
-// collection, and finally must return the newly created td element.
-tr.insertCell(0).innerHTML = "0";
-
-var childNodes = tr.childNodes;
-shouldBe("childNodes.length", "4");
-shouldBeEqualToString("childNodes[0].nodeValue", "TEXT");
-shouldBeEqualToString("childNodes[1].tagName", "A");
-shouldBeEqualToString("childNodes[2].innerHTML", "0");
-shouldBeEqualToString("childNodes[3].innerHTML", "1");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698