ok(result.text()==defaultText+'buga','Check if text appending works');
ok(result.text()==defaultText+'buga','Check if text appending works');
ok($('#select3').append('<option value="appendTest">Append Test</option>').find('option:last-child').attr('value')=='appendTest','Appending html options to select element');
ok($('#select3').append('<option value="appendTest">Append Test</option>').find('option:last-child').attr('value')=='appendTest','Appending html options to select element');
reset();
reset();
expected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
expected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
ok(result.text()=='buga'+defaultText,'Check if text prepending works');
ok(result.text()=='buga'+defaultText,'Check if text prepending works');
ok($('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value')=='prependTest','Prepending html options to select element');
ok($('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value')=='prependTest','Prepending html options to select element');
reset();
reset();
expected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";
expected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";
t("Form element :input",":input",["text1","text2","radio1","radio2","check1","check2","hidden1","hidden2","name","button","area1","select1","select2","select3"]);
t("Absolute and Relative Paths","/html//div",["main","foo"]);
t("Form element :input",":input",["text1","text2","radio1","radio2","check1","check2","hidden1","hidden2","name","button","area1","select1","select2","select3"]);