var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:"; $(document.getElementById('first')).appendTo('#sap'); ok( expected == $('#sap').text(), "Check for appending of element" );  reset(); expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo"; $([document.getElementById('first'), document.getElementById('yahoo')]).appendTo('#sap'); 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"; $("#first, #yahoo").appendTo('#sap'); ok( expected == $('#sap').text(), "Check for appending of jQuery object" );  reset(); $('#select1').appendTo('#foo'); t( 'Append select', '#foo select', ['select1'] ); 
var num = $("#first").children().length; var result = $('#first').wrapInner(document.getElementById('empty')); equals( $("#first").children().length, 1, "Only one child" ); ok( $("#first").children().is("#empty"), "Verify Right Element" ); equals( $("#first").children().children().length, num, "Verify Elements Intact" ); 
test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(6);	var defaultText = 'Try them out:'	$('<b>buga</b>').appendTo('#first');	ok( $("#first").text() == defaultText + 'buga', 'Check if text appending works' );	ok( $('<option value="appendTest">Append Test</option>').appendTo('#select3').parent().find('option:last-child').attr('value') == 'appendTest', 'Appending html options to select element');		reset();	var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:";	$(document.getElementById('first')).appendTo('#sap');	ok( expected == $('#sap').text(), "Check for appending of element" );		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";	$([document.getElementById('first'), document.getElementById('yahoo')]).appendTo('#sap');	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";	$("#first, #yahoo").appendTo('#sap');	ok( expected == $('#sap').text(), "Check for appending of jQuery object" );		reset();	$('#select1').appendTo('#foo');	t( 'Append select', '#foo select', ['select1'] );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/e3263063e4ef3d2e0ee6b74b9da573bf40e87668/coreTest.js/clean/src/jquery/coreTest.js