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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-splittext.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-splittext.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-splittext.js b/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-splittext.js
deleted file mode 100644
index 869ed198ebfac52400d41f67174cb2bb546de0fe..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-insertNode-splittext.js
+++ /dev/null
@@ -1,31 +0,0 @@
-description('Test for proper behavior of Range.insertNode when splitting text nodes');
-
-var p = document.createElement('p');
-var t1 = document.createTextNode('12345');
-p.appendChild(t1);
-var t2 = document.createTextNode('ABCDE');
-document.body.appendChild(p);
-var r = document.createRange();
-r.setStart(t1, 2);
-r.setEnd(t1, 3);
-r.insertNode(t2);
-
-shouldBe("p.childNodes.length", "3");
-shouldBe("p.childNodes[0]", "t1");
-shouldBeEqualToString("p.childNodes[0].data", "12");
-shouldBe("p.childNodes[1]", "t2");
-shouldBeEqualToString("p.childNodes[1].data", "ABCDE");
-shouldBeEqualToString("p.childNodes[2].data", "345");
-
-var t3 = p.childNodes[2];
-
-shouldBeFalse("r.collapsed");
-shouldBe("r.commonAncestorContainer", "p");
-shouldBe("r.startContainer", "t1");
-shouldBe("r.startOffset", "2");
-shouldBe("r.endContainer", "t3");
-shouldBe("r.endOffset", "1");
-shouldBeEqualToString("r.toString()", "ABCDE3")
-
-// clean up after ourselves
-document.body.removeChild(p);

Powered by Google App Engine
This is Rietveld 408576698