var x = $('#yahoo'); x.parent(); ok( 'Yahoo' == $('#yahoo').text(), 'Check for non-destructive behaviour' ); 
reset(); $('#yahoo').replaceWith(document.getElementById('first')); ok( $("#first")[0], 'Replace element with element' ); ok( !$("#yahoo")[0], 'Verify that original element is gone, after element' );  reset(); $('#yahoo').replaceWith([document.getElementById('first'), document.getElementById('mark')]); 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(); $('#yahoo').replaceWith($("#first, #mark")); 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' ); 
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' );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/buggy/test/unit/core.js