rem: 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'); 
add: $('<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'); 
context: 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();	var 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" );});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/1ac9d6fbeed214d59ea5c31a87ff2c19bb08dbc8/core.js/clean/test/unit/core.js