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');
reset();
expected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
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');
reset();
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("Form element :radio",":radio",["radio1","radio2"]);
t("Form element :checkbox",":checkbox",["check1","check2"]);
t("Form element :text",":text",["text1","text2","hidden2","name"]);
t("Form element :radio:checked",":radio:checked",["radio2"]);
t("Form element :checkbox:checked",":checkbox:checked",["check1"]);
t("Form element :checkbox:checked, :radio:checked",":checkbox:checked, :radio:checked",["check1","radio2"]);
});
test("expressions - basic xpath",function(){
expect(14);
ok(jQuery.find("//*").length>=30,"All Elements (//*)");
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');
reset();
expected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
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');
reset();
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("Form element :radio",":radio",["radio1","radio2"]);
t("Form element :checkbox",":checkbox",["check1","check2"]);
t("Form element :text",":text",["text1","text2","hidden2","name"]);
t("Form element :radio:checked",":radio:checked",["radio2"]);
t("Form element :checkbox:checked",":checkbox:checked",["check1"]);
t("Form element :checkbox:checked, :radio:checked",":checkbox:checked, :radio:checked",["check1","radio2"]);
});
test("expressions - basic xpath",function(){
expect(14);
ok(jQuery.find("//*").length>=30,"All Elements (//*)");