diff options
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 717488178..bfdc1551a 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -265,7 +265,7 @@ test("unwrap()", function() { }); var testAppend = function(valueObj) { - expect(41); + expect(46); var defaultText = "Try them out:" var result = jQuery("#first").append(valueObj("<b>buga</b>")); equal( result.text(), defaultText + "buga", "Check if text appending works" ); @@ -318,6 +318,12 @@ var testAppend = function(valueObj) { }).remove(); QUnit.reset(); + jQuery("form").append(valueObj("<input type='radio' checked='checked' name='radiotest' />")); + jQuery("form input[name=radiotest]").each(function(){ + ok( jQuery(this).is(":checked"), "Append with name attribute after checked attribute"); + }).remove(); + + QUnit.reset(); jQuery("#sap").append(valueObj( document.getElementById("form") )); equal( jQuery("#sap>form").size(), 1, "Check for appending a form" ); // Bug #910 |