rem: test("insertBefore(String|Element|Array&lt;Element&gt;|jQuery)", function() { expect(4); var expected = 'This is a normal link: bugaYahoo'; $('<b>buga</b>').insertBefore('#yahoo'); ok( expected == $('#en').text(), 'Insert String before' ); 
add: test("prependTo(String|Element|Array&lt;Element&gt;|jQuery)", function() { expect(6); var defaultText = 'Try them out:' $('<b>buga</b>').prependTo('#first'); ok( $('#first').text() == 'buga' + defaultText, 'Check if text prepending works' ); ok( $('<option value="prependTest">Prepend Test</option>').prependTo('#select3').parent().find('option:first-child').attr('value') == 'prependTest', 'Prepending html options to select element'); 
context: test("insertBefore(String|Element|Array&lt;Element&gt;|jQuery)", function() {	expect(4);	var expected = 'This is a normal link: bugaYahoo';	$('<b>buga</b>').insertBefore('#yahoo');	ok( expected == $('#en').text(), 'Insert String before' );		reset();	expected = "This is a normal link: Try them out:Yahoo";	$(document.getElementById('first')).insertBefore('#yahoo');	ok( expected == $('#en').text(), "Insert element before" );		reset();	expected = "This is a normal link: Try them out:diveintomarkYahoo";	$([document.getElementById('first'), document.getElementById('mark')]).insertBefore('#yahoo');	ok( expected == $('#en').text(), "Insert array of elements before" );		reset();	expected = "This is a normal link: Try them out:diveintomarkYahoo";	$("#first, #mark").insertBefore('#yahoo');	ok( expected == $('#en').text(), "Insert jQuery before" );});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/clean/test/unit/core.js