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: $.each("0,0.25,0.5,0.75,1".split(','), function(i, n) { $('#foo').css('opacity', n); ok( $('#foo').css('opacity') == n, "Assert opacity is " + n + " as a String" ); $('#foo').css('opacity', parseFloat(n)); ok( $('#foo').css('opacity') == n, "Assert opacity is " + n + " as a Number" ); }); 
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: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/3728a8ac0494de7ccab48bfc69f5d71496ba64c2/coreTest.js/clean/src/jquery/coreTest.js