reset(); $('#select1').appendTo('#foo'); t( 'Append select', '#foo select', ['select1'] );  
test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(12);	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();	$("#sap").append( " text with spaces " );	ok( $("#sap")[0].innerHTML.match(/ text with spaces $/), "Check for appending text with spaces" );	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." );		reset();	$("#sap").append(document.getElementById('form'));	ok( $("#sap>form").size() == 1, "Check for appending a form" );  // Bug #910	reset();	var pass = true;	try {		$( $("iframe")[0].contentWindow.document.body ).append("<div>test</div>");	} catch(e) {		pass = false;	}	ok( pass, "Test for appending a DOM node to the contents of an IFrame" );	});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/cb828f3dab6ec8439ac111246346a8d4b3205fed/coreTest.js/buggy/src/jquery/coreTest.js