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