rem: $('#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' ); 
add: expected = "This is a normal link: YahooTry them out:diveintomark"; $("#mark, #first").insertAfter('#yahoo'); ok( expected == $('#en').text(), "Insert jQuery after" ); 
context: test("replaceWith(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(10);	$('#yahoo').replaceWith('<b id="replace">buga</b>');	ok( $("#replace")[0], 'Replace element with string' );	ok( !$("#yahoo")[0], 'Verify that original element is gone, after string' );		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' );});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/0a755f6ab38d36ffda02f9ff5a6d606c24a94baa/core.js/buggy/test/unit/core.js