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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/characterdata-appendData-argument-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-32791A 2F" />
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests that CharacterData.appendData() argument is mandatory.");
10
11 var text = document.createTextNode("abcd");
12 shouldBeEqualToString("text.data", "abcd");
13 shouldBe("text.__proto__.__proto__", "CharacterData.prototype");
14 shouldNotThrow("text.appendData('efg')");
15 shouldBeEqualToString("text.data", "abcdefg");
16 shouldThrow("text.appendData()", "'TypeError: Not enough arguments'"); // Missin g argument.
17 shouldBeEqualToString("text.data", "abcdefg");
18 </script>
19 <script src="../js/resources/js-test-post.js"></script>
20 </body>
21 </html>
OLDNEW
« 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