add:  reset(); $("#sap").append(document.getElementById('form')); ok( $("#sap>form").size() == 1, "Check for appending a form" );  
context: test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(9);	var defaultText = 'Try them out:'	var result = $('#first').append('<b>buga</b>');	ok( result.text() == defaultText + 'buga', 'Check if text appending works' );	ok( $('#select3').append('<option value="appendTest">Append Test</option>').find('option:last-child').attr('value') == 'appendTest', 'Appending html options to select element');		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:";	$('#sap').append(document.getElementById('first'));	ok( expected == $('#sap').text(), "Check for appending of element" );		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";	$('#sap').append([document.getElementById('first'), document.getElementById('yahoo')]);	ok( expected == $('#sap').text(), "Check for appending of array of elements" );		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";	$('#sap').append($("#first, #yahoo"));	ok( expected == $('#sap').text(), "Check for appending of jQuery object" );	reset();	$("#sap").append( 5 );	ok( $("#sap")[0].innerHTML.match( /5$/ ), "Check for appending a number" );	reset();	ok( $("#sap").append([]), "Check for appending an empty array." );	ok( $("#sap").append(""), "Check for appending an empty string." );	ok( $("#sap").append(document.getElementsByTagName("foo")), "Check for appending an empty nodelist." );});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/ecaa4d4570b05610d542b971fc4278de3c251e79/coreTest.js/buggy/src/jquery/coreTest.js