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

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

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 !DOCTYPE html> 1 !DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="help" href="http://www.w3.org/TR/2012/WD-dom-20121206/#text"> 4 <link rel="help" href="http://www.w3.org/TR/2012/WD-dom-20121206/#text">
5 <script src="../js/resources/js-test-pre.js"></script> 5 <script src="../js/resources/js-test-pre.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description("Tests that the Text API arguments are correctly validated."); 9 description("Tests that the Text API arguments are correctly validated.");
10 10
(...skipping 19 matching lines...) Expand all
30 shouldBeEqualToString("text.data", "test"); 30 shouldBeEqualToString("text.data", "test");
31 shouldBeNull("text.replaceWholeText('')"); 31 shouldBeNull("text.replaceWholeText('')");
32 shouldBeEqualToString("text.data", "test"); 32 shouldBeEqualToString("text.data", "test");
33 shouldThrow("text.replaceWholeText()", '"TypeError: Failed to execute \'replaceW holeText\' on \'Text\': 1 argument required, but only 0 present."'); 33 shouldThrow("text.replaceWholeText()", '"TypeError: Failed to execute \'replaceW holeText\' on \'Text\': 1 argument required, but only 0 present."');
34 shouldBeEqualToString("text.data", "test"); 34 shouldBeEqualToString("text.data", "test");
35 shouldBe("text.replaceWholeText(null)", "text"); 35 shouldBe("text.replaceWholeText(null)", "text");
36 shouldBeEqualToString("text.data", "null"); 36 shouldBeEqualToString("text.data", "null");
37 shouldBe("text.replaceWholeText(undefined)", "text"); 37 shouldBe("text.replaceWholeText(undefined)", "text");
38 shouldBeEqualToString("text.data", "undefined"); 38 shouldBeEqualToString("text.data", "undefined");
39 </script> 39 </script>
40 <script src="../js/resources/js-test-post.js"></script>
41 </body> 40 </body>
42 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698