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

Unified Diff: LayoutTests/fast/dom/Text/script-tests/replaceWholeText.js

Issue 733943004: Remove Text.replaceWholeText() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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: LayoutTests/fast/dom/Text/script-tests/replaceWholeText.js
diff --git a/LayoutTests/fast/dom/Text/script-tests/replaceWholeText.js b/LayoutTests/fast/dom/Text/script-tests/replaceWholeText.js
deleted file mode 100644
index 2e176d9e7acb1d6444bd54270440c37aba65adbb..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/Text/script-tests/replaceWholeText.js
+++ /dev/null
@@ -1,14 +0,0 @@
-description("Test wholeText and replaceWholeText")
-
-var para = document.createElement('p');
-para.appendChild(document.createTextNode('A'));
-var textB = document.createTextNode('B');
-para.appendChild(textB);
-para.appendChild(document.createElement('p'));
-para.appendChild(document.createTextNode('C'));
-
-shouldBe("textB.wholeText", "'AB'");
-shouldBe("para.textContent", "'ABC'");
-textB.replaceWholeText("XYZ");
-shouldBe("textB.wholeText", "'XYZ'");
-shouldBe("para.textContent", "'XYZC'");

Powered by Google App Engine
This is Rietveld 408576698