From 4dcbfc92c391983059b920d2a500c1246869f4c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Mon, 18 Sep 2006 12:58:17 +0000 Subject: [PATCH] Added test for feature #206 --- src/jquery/jquery.js | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 1.7.10.4