rem: $('#select1').appendTo('#foo'); t( 'Append select', '#foo select', ['select1'] ); 
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("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(6);	var defaultText = 'Try them out:'	$('<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');		reset();	var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:";	$(document.getElementById('first')).appendTo('#sap');	ok( expected == $('#sap').text(), "Check for appending of element" );		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";	$([document.getElementById('first'), document.getElementById('yahoo')]).appendTo('#sap');	ok( expected == $('#sap').text(), "Check for appending of array of elements" );		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";	$("#first, #yahoo").appendTo('#sap');	ok( expected == $('#sap').text(), "Check for appending of jQuery object" );		reset();	$('#select1').appendTo('#foo');	t( 'Append select', '#foo select', ['select1'] );});
meta: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/e2ef3df86d5f54274bf2b779d882c30aa0886bfe/core.js/clean/test/unit/core.js