]> source.dussan.org Git - jquery.git/commitdiff
Added test for feature #206
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 18 Sep 2006 12:58:17 +0000 (12:58 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 18 Sep 2006 12:58:17 +0000 (12:58 +0000)
src/jquery/jquery.js

index b0db0991a4bb1c7682c9a55ddbff65a97869fd95..5fd368aa077bf1eb3ae4d8b600b9599c81e3b12d 100644 (file)
@@ -667,6 +667,12 @@ jQuery.fn = jQuery.prototype = {
         * var result = $('#first').append('<b>buga</b>');
         * ok( result.text() == defaultText + 'buga', 'Check if text appending works' );
         *
+        * @test reset();
+        * var expected = "Try them out: bla ";
+        * $('#first').append(" ");
+        * $('#first').append("bla ");
+        * ok( expected == $('#first').text(), "Check for appending of spaces" );
+        *
         * @name append
         * @type jQuery
         * @param String html A string of HTML, that will be created on the fly and appended to the target.