equal(result.text(),"buga"+expected,"Check if text prepending works");
equal(jQuery("#select3").prepend("<option value='prependTest'>Prepend Test</option>").find("option:first-child").attr("value"),"prependTest","Prepending html options to select element");
});
equal(result.text(),"buga"+defaultText,"Check if text prepending works");
equal(jQuery("#select3").prepend(val("<option value='prependTest'>Prepend Test</option>")).find("option:first-child").attr("value"),"prependTest","Prepending html options to select element");
test("prepend(Element)",function(){
expect(1);
QUnit.reset();
varexpected;
expected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";
equal(jQuery("#first").text(),"buga"+defaultText,"Check if text prepending works");
equal(jQuery("<option value='prependTest'>Prepend Test</option>").prependTo("#select3").parent().find("option:first-child").attr("value"),"prependTest","Prepending html options to select element");
});
test("prependTo(Element)",function(){
expect(1);
varexpected;
QUnit.reset();
expected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";