context: 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' );	ok( $('#first').parent().parent().is('.red'), 'Check if wrapper has class "red"' );	reset();	var defaultText = 'Try them out:'	var result = $('#first').wrap(document.getElementById('empty')).parent();	ok( result.is('ol'), 'Check for element wrapping' );	ok( result.text() == defaultText, 'Check for element wrapping' );		reset();	//stop();	$('#check1').click(function() {				var checkbox = this;				ok( checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );		$(checkbox).wrap( '<div id="c1" style="display:none;"></div>' );		ok( checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );		// use a fade in to check state after this event handler has finished		/*setTimeout(function() {			ok( !checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );			start();		}, 100);*/	}).click();});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/e3263063e4ef3d2e0ee6b74b9da573bf40e87668/coreTest.js/buggy/src/jquery/coreTest.js