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