aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-06-17 19:59:16 +0000
committerAriel Flesler <aflesler@gmail.com>2008-06-17 19:59:16 +0000
commit21d669135d3fe735d116a8b9a457b961ef684b0d (patch)
treefec8525657861e305d58b78a987f353dfef7bfa6
parent5e50079b1472d9fef27fdc3f59c0f2e494556dd9 (diff)
downloadjquery-21d669135d3fe735d116a8b9a457b961ef684b0d.tar.gz
jquery-21d669135d3fe735d116a8b9a457b961ef684b0d.zip
test runner: 2 tests for [5728].
-rw-r--r--test/unit/core.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index a0e7b1f84..dda792923 100644
--- a/test/unit/core.js
+++ b/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>');