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

Unified Diff: LayoutTests/fast/dom/characterdata-appendData-argument.html

Issue 21364003: Make CharacterData.appendData() argument mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 7 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/characterdata-appendData-argument-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/characterdata-appendData-argument.html
diff --git a/LayoutTests/fast/dom/characterdata-appendData-argument.html b/LayoutTests/fast/dom/characterdata-appendData-argument.html
new file mode 100644
index 0000000000000000000000000000000000000000..cc42604ad1156bc12233fe5592d1904079e06ec5
--- /dev/null
+++ b/LayoutTests/fast/dom/characterdata-appendData-argument.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-32791A2F" />
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+description("Tests that CharacterData.appendData() argument is mandatory.");
+
+var text = document.createTextNode("abcd");
+shouldBeEqualToString("text.data", "abcd");
+shouldBe("text.__proto__.__proto__", "CharacterData.prototype");
+shouldNotThrow("text.appendData('efg')");
+shouldBeEqualToString("text.data", "abcdefg");
+shouldThrow("text.appendData()", "'TypeError: Not enough arguments'"); // Missing argument.
+shouldBeEqualToString("text.data", "abcdefg");
+</script>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/characterdata-appendData-argument-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698