test runner: 2 tests for [5728].
This commit is contained in:
parent
5e50079b14
commit
21d669135d
|
@ -1174,7 +1174,7 @@ test("val(String/Number)", function() {
|
|||
var scriptorder = 0;
|
||||
|
||||
test("html(String)", function() {
|
||||
expect(11);
|
||||
expect(13);
|
||||
var div = jQuery("#main > div");
|
||||
div.html("<b>test</b>");
|
||||
var pass = true;
|
||||
|
@ -1196,6 +1196,10 @@ test("html(String)", function() {
|
|||
jQuery("#main select").html("<option>O1</option><option selected='selected'>O2</option><option>O3</option>");
|
||||
equals( jQuery("#main select").val(), "O2", "Selected option correct" );
|
||||
|
||||
var $div = jQuery('<div />');
|
||||
equals( $div.html( 5 ).html(), '5', 'Setting a number as html' );
|
||||
equals( $div.html( 0 ).html(), '0', 'Setting a zero as html' );
|
||||
|
||||
stop();
|
||||
|
||||
jQuery("#main").html('<script type="text/javascript">ok( true, "jQuery().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');
|
||||
|
|
Loading…
Reference in a new issue