equals(result.text(),defaultText+'buga','Check if text appending works');
equals(result.text(),defaultText+'buga','Check if text appending works');
equals($('#select3').append('<option value="appendTest">Append Test</option>').find('option:last-child').attr('value'),'appendTest','Appending html options to select element');
equals($('#select3').append('<option value="appendTest">Append Test</option>').find('option:last-child').attr('value'),'appendTest','Appending html options to select element');
reset();
reset();
varexpected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
varexpected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
equals($("#first").text(),defaultText+'buga','Check if text appending works');
equals($("#first").text(),defaultText+'buga','Check if text appending works');
equals($('<option value="appendTest">Append Test</option>').appendTo('#select3').parent().find('option:last-child').attr('value'),'appendTest','Appending html options to select element');
equals($('<option value="appendTest">Append Test</option>').appendTo('#select3').parent().find('option:last-child').attr('value'),'appendTest','Appending html options to select element');
reset();
reset();
varexpected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
varexpected="This link has class=\"blog\": Simon Willison's WeblogTry them out:";
equals(result.text(),'buga'+defaultText,'Check if text prepending works');
equals(result.text(),'buga'+defaultText,'Check if text prepending works');
equals($('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value'),'prependTest','Prepending html options to select element');
equals($('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value'),'prependTest','Prepending html options to select element');
reset();
reset();
varexpected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";
varexpected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";
equals($('#first').text(),'buga'+defaultText,'Check if text prepending works');
equals($('#first').text(),'buga'+defaultText,'Check if text prepending works');
equals($('<option value="prependTest">Prepend Test</option>').prependTo('#select3').parent().find('option:first-child').attr('value'),'prependTest','Prepending html options to select element');
equals($('<option value="prependTest">Prepend Test</option>').prependTo('#select3').parent().find('option:first-child').attr('value'),'prependTest','Prepending html options to select element');
reset();
reset();
varexpected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";
varexpected="Try them out:This link has class=\"blog\": Simon Willison's Weblog";