From: Jörn Zaefferer Date: Mon, 18 Sep 2006 12:58:17 +0000 (+0000) Subject: Added test for feature #206 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=4dcbfc92c391983059b920d2a500c1246869f4c7;p=jquery.git Added test for feature #206 --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index b0db099..5fd368a 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -667,6 +667,12 @@ jQuery.fn = jQuery.prototype = { * var result = $('#first').append('buga'); * 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.