rem: 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' ); 
add: test("insertAfter(String|Element|Array&lt;Element&gt;|jQuery)", function() { expect(4); var expected = 'This is a normal link: Yahoobuga'; $('<b>buga</b>').insertAfter('#yahoo'); ok( expected == $('#en').text(), 'Insert String 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: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/1ac9d6fbeed214d59ea5c31a87ff2c19bb08dbc8/core.js/buggy/test/unit/core.js