rem: expected = "This is a normal link: Try them out:Yahoo"; $('#yahoo').before(document.getElementById('first')); ok( expected == $('#en').text(), "Insert element before" ); 
add: expected = "Try them out:This link has class=\"blog\": Simon Willison's Weblog"; $('#sap').prepend(document.getElementById('first')); ok( expected == $('#sap').text(), "Check for prepending of element" );  reset(); expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog"; $('#sap').prepend([document.getElementById('first'), document.getElementById('yahoo')]); ok( expected == $('#sap').text(), "Check for prepending of array of elements" ); 
context: test("before(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(4);	var expected = 'This is a normal link: bugaYahoo';	$('#yahoo').before('<b>buga</b>');	ok( expected == $('#en').text(), 'Insert String before' );		reset();	expected = "This is a normal link: Try them out:Yahoo";	$('#yahoo').before(document.getElementById('first'));	ok( expected == $('#en').text(), "Insert element before" );		reset();	expected = "This is a normal link: Try them out:diveintomarkYahoo";	$('#yahoo').before([document.getElementById('first'), document.getElementById('mark')]);	ok( expected == $('#en').text(), "Insert array of elements before" );		reset();	expected = "This is a normal link: Try them out:diveintomarkYahoo";	$('#yahoo').before($("#first, #mark"));	ok( expected == $('#en').text(), "Insert jQuery before" );});
meta: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/3728a8ac0494de7ccab48bfc69f5d71496ba64c2/coreTest.js/buggy/src/jquery/coreTest.js