aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2006-09-18 12:58:17 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2006-09-18 12:58:17 +0000
commit4dcbfc92c391983059b920d2a500c1246869f4c7 (patch)
treee0fa58bcd87c65358f24e195a7c4782fc1323fe2 /src
parent51a07a6a5f8b1e58fbbce6bcfe4d909a3f9ca964 (diff)
downloadjquery-4dcbfc92c391983059b920d2a500c1246869f4c7.tar.gz
jquery-4dcbfc92c391983059b920d2a500c1246869f4c7.zip
Added test for feature #206
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index b0db0991a..5fd368aa0 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -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.