var result = $('#first').prepend('<b>buga</b>'); ok( result.text() == 'buga' + defaultText, 'Check if text prepending works' ); ok( $('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value') == 'prependTest', 'Prepending html options to select element'); 
$('<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'); 
test("prepend(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(5);	var defaultText = 'Try them out:'	var result = $('#first').prepend('<b>buga</b>');	ok( result.text() == 'buga' + defaultText, 'Check if text prepending works' );	ok( $('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value') == 'prependTest', 'Prepending html options to select element');		reset();	expected = "Try them out:This link has class=\"blog\": Simon Willison's Weblog";	$('#sap').prepend(document.getElementById('first'));	ok( expected == $('#sap').text(), "Check for prepending of element" );	reset();	expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";	$('#sap').prepend([document.getElementById('first'), document.getElementById('yahoo')]);	ok( expected == $('#sap').text(), "Check for prepending of array of elements" );		reset();	expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";	$('#sap').prepend($("#first, #yahoo"));	ok( expected == $('#sap').text(), "Check for prepending of jQuery object" );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/495ecb70b2b097e7d4a1ffe46d44562210cdc051/coreTest.js/clean/src/jquery/coreTest.js