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" ); 
$("#sap").append(document.getElementById('form')); ok( $("#sap>form").size() == 1, "Check for appending a form" );  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" );  reset(); $('<fieldset/>').appendTo('#form').append('<legend id="legend">test</legend>'); t( 'Append legend', '#legend', ['legend'] );  reset(); $('#select1').append('<OPTION>Test</OPTION>'); ok( $('#select1 option:last').text() == "Test", "Appending &lt;OPTION&gt; (all caps)" );  $('#table').append('<colgroup></colgroup>'); ok( $('#table colgroup').length, "Append colgroup" );  $('#table colgroup').append('<col/>'); ok( $('#table colgroup col').length, "Append col" );  reset(); $('#table').append('<caption></caption>'); ok( $('#table caption').length, "Append caption" );  reset(); $('form:last') .append('<select id="appendSelect1"></select>') .append('<select id="appendSelect2"><option>Test</option></select>');  t( "Append Select", "#appendSelect1, #appendSelect2", ["appendSelect1", "appendSelect2"] ); 
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" );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/buggy/test/unit/core.js