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

Unified Diff: LayoutTests/fast/dom/text-api-arguments.html

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-api-arguments.html
diff --git a/LayoutTests/fast/dom/text-api-arguments.html b/LayoutTests/fast/dom/text-api-arguments.html
index e39a02237054ad02d0246336d5a70d5ddaaf1741..67703c4ea15d16fa58d8bb3c0e16c2ee74031079 100644
--- a/LayoutTests/fast/dom/text-api-arguments.html
+++ b/LayoutTests/fast/dom/text-api-arguments.html
@@ -23,19 +23,6 @@ shouldThrow("text.splitText(-1)", '"IndexSizeError: Failed to execute \'splitTex
shouldBeEqualToString("text.data", "abcd");
shouldBeEqualToString("text.splitText(-4294967294).data", "cd"); // Wraps to 2, which is a valid offset.
shouldBeEqualToString("text.data", "ab");
-
-// Text replaceWholeText(DOMString content)
-text.data = "abcdefg";
-shouldBe("text.replaceWholeText('test')", "text");
-shouldBeEqualToString("text.data", "test");
-shouldBeNull("text.replaceWholeText('')");
-shouldBeEqualToString("text.data", "test");
-shouldThrow("text.replaceWholeText()", '"TypeError: Failed to execute \'replaceWholeText\' on \'Text\': 1 argument required, but only 0 present."');
-shouldBeEqualToString("text.data", "test");
-shouldBe("text.replaceWholeText(null)", "text");
-shouldBeEqualToString("text.data", "null");
-shouldBe("text.replaceWholeText(undefined)", "text");
-shouldBeEqualToString("text.data", "undefined");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698