aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2011-05-03 15:02:26 -0400
committerJohn Resig <jeresig@gmail.com>2011-05-03 15:02:26 -0400
commitbfad45fe4510db78a38170752ccc9c9efe5f38b6 (patch)
treeb90e36a8c5a38c89b3c0773f9716ffe89f000f19 /test
parent3cdffce19f8ce7a52b91f387872e3de804044f02 (diff)
downloadjquery-bfad45fe4510db78a38170752ccc9c9efe5f38b6.tar.gz
jquery-bfad45fe4510db78a38170752ccc9c9efe5f38b6.zip
Fix problem with appending multiple string arguments in IE 6. Fixes #9072.
Diffstat (limited to 'test')
-rw-r--r--test/unit/manipulation.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index b71b6962e..972cfaf91 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -227,7 +227,7 @@ test("unwrap()", function() {
});
var testAppend = function(valueObj) {
- expect(40);
+ expect(41);
var defaultText = "Try them out:"
var result = jQuery("#first").append(valueObj("<b>buga</b>"));
equals( result.text(), defaultText + "buga", "Check if text appending works" );
@@ -344,6 +344,17 @@ var testAppend = function(valueObj) {
equals( $radio[0].checked, true, "Reappending radios uphold which radio is checked" );
equals( $radioNot[0].checked, false, "Reappending radios uphold not being checked" );
QUnit.reset();
+
+ var prev = jQuery("#sap").children().length;
+
+ jQuery("#sap").append(
+ "<span></span>",
+ "<span></span>",
+ "<span></span>"
+ );
+
+ equals( jQuery("#sap").children().length, prev + 3, "Make sure that multiple arguments works." );
+ QUnit.reset();
}
test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {