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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-separate-endContainer.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/Range/script-tests/range-insertNode-separate-endContainer.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-separate-endContainer.js b/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-separate-endContainer.js
deleted file mode 100644
index 1afa86ce2052beb69c07a27369cf2e956cba2680..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-separate-endContainer.js
+++ /dev/null
@@ -1,36 +0,0 @@
-description('Test for proper behavior of Range.insertNode(documentFragment) when startContainer != endContainer');
-
-var p = document.createElement('p');
-var t1 = document.createTextNode('12345');
-p.appendChild(t1);
-var t2 = document.createTextNode('ABCDE');
-p.appendChild(t2);
-document.body.appendChild(p);
-var r = document.createRange();
-r.setStart(p, 1);
-r.setEnd(t2, 3);
-shouldBeEqualToString("r.toString()", "ABC");
-
-var df = document.createDocumentFragment();
-var t3 = document.createTextNode("PQR");
-var t4 = document.createTextNode("XYZ");
-df.appendChild(t3);
-df.appendChild(t4);
-r.insertNode(df);
-
-shouldBe("p.childNodes.length", "4");
-shouldBe("p.childNodes[0]", "t1");
-shouldBe("p.childNodes[1]", "t3");
-shouldBe("p.childNodes[2]", "t4");
-shouldBe("p.childNodes[3]", "t2");
-
-shouldBeFalse("r.collapsed");
-shouldBe("r.commonAncestorContainer", "p");
-shouldBe("r.startContainer", "p");
-shouldBe("r.startOffset", "1");
-shouldBe("r.endContainer", "t2");
-shouldBe("r.endOffset", "3");
-shouldBeEqualToString("r.toString()", "PQRXYZABC")
-
-// clean up after ourselves
-document.body.removeChild(p);

Powered by Google App Engine
This is Rietveld 408576698