Skip to content
Permalink
Browse files

test runner: 2 tests for [5728].

  • Loading branch information
flesler committed Jun 17, 2008
1 parent 5e50079 commit 21d669135d3fe735d116a8b9a457b961ef684b0d
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/unit/core.js
@@ -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>');

0 comments on commit 21d6691

Please sign in to comment.
You can’t perform that action at this time.