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

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

Issue 21542002: Make CharacterData::insertData() / deleteData() / replaceData() arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline fast/dom/characterdata-appendData-argument.html 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
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

Powered by Google App Engine
This is Rietveld 408576698