rem: var x = $('#yahoo'); x.parent(); ok( 'Yahoo' == $('#yahoo').text(), 'Check for non-destructive behaviour' ); 
add: reset(); $(document.getElementById('first')).replaceAll("#yahoo"); ok( $("#first")[0], 'Replace element with element' ); ok( !$("#yahoo")[0], 'Verify that original element is gone, after element' );  reset(); $([document.getElementById('first'), document.getElementById('mark')]).replaceAll("#yahoo"); ok( $("#first")[0], 'Replace element with array of elements' ); ok( $("#mark")[0], 'Replace element with array of elements' ); ok( !$("#yahoo")[0], 'Verify that original element is gone, after array of elements' );  reset(); $("#first, #mark").replaceAll("#yahoo"); ok( $("#first")[0], 'Replace element with set of elements' ); ok( $("#mark")[0], 'Replace element with set of elements' ); ok( !$("#yahoo")[0], 'Verify that original element is gone, after set of elements' ); 
context: test("end()", function() {	expect(3);	ok( 'Yahoo' == $('#yahoo').parent().end().text(), 'Check for end' );	ok( $('#yahoo').end(), 'Check for end with nothing to end' );		var x = $('#yahoo');	x.parent();	ok( 'Yahoo' == $('#yahoo').text(), 'Check for non-destructive behaviour' );});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/e2ef3df86d5f54274bf2b779d882c30aa0886bfe/core.js/clean/test/unit/core.js