rem: test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() { expect(5); 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(); 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" ); 
add: test("text()", function() { var expected = "This link has class=\"blog\": Simon Willison's Weblog"; ok( $('#sap').text() == expected, 'Check for merged text of more then one element.' ); 
context: test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(5);	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();	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" );});
meta: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/7d0a84193f539d85267d1458aba35a42d7dbd03b/coreTest.js/clean/src/jquery/coreTest.js