rem: test("wrap(String|Element)", function() { expect(4); 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' ); 
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("wrap(String|Element)", function() {	expect(4);	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' );});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/a5f9108a2109b2ed5778af860b0928d8e6b0fdd2/coreTest.js/buggy/src/jquery/coreTest.js