rem: 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" ); 
add: $("#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"] ); 
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: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/e3263063e4ef3d2e0ee6b74b9da573bf40e87668/coreTest.js/clean/src/jquery/coreTest.js