rem: var x = $('#yahoo'); x.parent(); ok( 'Yahoo' == $('#yahoo').text(), 'Check for non-destructive behaviour' ); 
add: reset(); expected = "This is a normal link: YahooTry them out:"; $(document.getElementById('first')).insertAfter('#yahoo'); ok( expected == $('#en').text(), "Insert element after" );  reset(); expected = "This is a normal link: YahooTry them out:diveintomark"; $([document.getElementById('mark'), document.getElementById('first')]).insertAfter('#yahoo'); ok( expected == $('#en').text(), "Insert array of elements after" );  reset(); expected = "This is a normal link: YahooTry them out:diveintomark"; $("#mark, #first").insertAfter('#yahoo'); ok( expected == $('#en').text(), "Insert jQuery after" ); 
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: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/495ecb70b2b097e7d4a1ffe46d44562210cdc051/coreTest.js/buggy/src/jquery/coreTest.js