reset(); expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:"; $('#sap').append(document.getElementById('first')); ok( expected == $('#sap').text(), "Check for appending of element" );  reset(); expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo"; $('#sap').append([document.getElementById('first'), document.getElementById('yahoo')]); 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"; $('#sap').append($("#first, #yahoo")); ok( expected == $('#sap').text(), "Check for appending of jQuery object" );  reset(); $("#sap").append( 5 ); ok( $("#sap")[0].innerHTML.match( /5$/ ), "Check for appending a number" );  reset(); $("#sap").append( " text with spaces " ); ok( $("#sap")[0].innerHTML.match(/ text with spaces $/), "Check for appending text with spaces" );  reset(); ok( $("#sap").append([]), "Check for appending an empty array." ); ok( $("#sap").append(""), "Check for appending an empty string." ); ok( $("#sap").append(document.getElementsByTagName("foo")), "Check for appending an empty nodelist." );  reset(); $("#sap").append(document.getElementById('form')); ok( $("#sap>form").size() == 1, "Check for appending a form" );  
$('#floatTest').css('styleFloat', 'left'); ok( $('#floatTest').css('styleFloat') == 'left', 'Modified CSS float using "styleFloat": Assert float is left'); $('#floatTest').css('cssFloat', 'right'); ok( $('#floatTest').css('cssFloat') == 'right', 'Modified CSS float using "cssFloat": Assert float is right'); $('#floatTest').css('float', 'left'); ok( $('#floatTest').css('float') == 'left', 'Modified CSS float using "float": Assert float is left'); $('#floatTest').css('font-size', '20px'); ok( $('#floatTest').css('font-size') == '20px', 'Modified CSS font-size: Assert font-size is 20px'); 
test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(11);	var defaultText = 'Try them out:'	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');		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:";	$('#sap').append(document.getElementById('first'));	ok( expected == $('#sap').text(), "Check for appending of element" );		reset();	expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";	$('#sap').append([document.getElementById('first'), document.getElementById('yahoo')]);	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";	$('#sap').append($("#first, #yahoo"));	ok( expected == $('#sap').text(), "Check for appending of jQuery object" );	reset();	$("#sap").append( 5 );	ok( $("#sap")[0].innerHTML.match( /5$/ ), "Check for appending a number" );	reset();	$("#sap").append( " text with spaces " );	ok( $("#sap")[0].innerHTML.match(/ text with spaces $/), "Check for appending text with spaces" );	reset();	ok( $("#sap").append([]), "Check for appending an empty array." );	ok( $("#sap").append(""), "Check for appending an empty string." );	ok( $("#sap").append(document.getElementsByTagName("foo")), "Check for appending an empty nodelist." );		reset();	$("#sap").append(document.getElementById('form'));	ok( $("#sap>form").size() == 1, "Check for appending a form" );  // Bug #910	});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/7d0a84193f539d85267d1458aba35a42d7dbd03b/coreTest.js/buggy/src/jquery/coreTest.js