test("wrapAll(String|Element)", function() { expect(8); var prev = $("#first")[0].previousSibling; var p = $("#first")[0].parentNode; var result = $('#first,#firstp').wrapAll('<div class="red"><div id="tmp"></div></div>'); equals( result.parent().length, 1, 'Check for wrapping of on-the-fly html' ); 
test("wrap(String|Element)", function() { expect(6); var defaultText = 'Try them out:' var result = $('#first').wrap('<div class="red"><span></span></div>').text(); ok( defaultText == result, 'Check for wrapping of on-the-fly html' ); 
test("wrapAll(String|Element)", function() {	expect(8);	var prev = $("#first")[0].previousSibling;	var p = $("#first")[0].parentNode;	var result = $('#first,#firstp').wrapAll('<div class="red"><div id="tmp"></div></div>');	equals( result.parent().length, 1, 'Check for wrapping of on-the-fly html' );	ok( $('#first').parent().parent().is('.red'), 'Check if wrapper has class "red"' );	ok( $('#firstp').parent().parent().is('.red'), 'Check if wrapper has class "red"' );	equals( $("#first").parent().parent()[0].previousSibling, prev, "Correct Previous Sibling" );	equals( $("#first").parent().parent()[0].parentNode, p, "Correct Parent" );	reset();	var prev = $("#first")[0].previousSibling;	var p = $("#first")[0].parentNode;	var result = $('#first,#firstp').wrapAll(document.getElementById('empty'));	equals( $("#first").parent()[0], $("#firstp").parent()[0], "Same Parent" );	equals( $("#first").parent()[0].previousSibling, prev, "Correct Previous Sibling" );	equals( $("#first").parent()[0].parentNode, p, "Correct Parent" );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/buggy/test/unit/core.js