rem: $('#check1').click(function() { 
add: 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(); $('#check1').click(function() { 
context: 	$('#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" );	}).click();
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/1ac9d6fbeed214d59ea5c31a87ff2c19bb08dbc8/core.js/clean/test/unit/core.js