X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=818e0f7d55dec03bd42c2e35ab277ac87d967d73;hb=c9899a74ac7b7ddb8663f4aa074c1c05f6514e5a;hp=db47856095e3a2f2ce98af219b3b24c083e7f2bb;hpb=6728e3cf74d02794113deb0af70a5f9a7caa2241;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index db47856..818e0f7 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -821,7 +821,7 @@ test("val(String)", function() { }); test("html(String)", function() { - expect(1); + expect(3); var div = $("div"); div.html("test"); var pass = true; @@ -830,8 +830,13 @@ test("html(String)", function() { } ok( pass, "Set HTML" ); - // Ccommented out until we can resolve it - // $("#main").html('').evalScripts(); + stop(); + + $("#main").html(''); + + $("#main").html('foo
'); + + setTimeout( start, 100 ); }); test("filter()", function() { @@ -1029,11 +1034,13 @@ test("empty()", function() { }); test("slice()", function() { - expect(4); + expect(5); isSet( $("#ap a").slice(1,2), q("groups"), "slice(1,2)" ); isSet( $("#ap a").slice(1), q("groups", "anchor1", "mark"), "slice(1)" ); isSet( $("#ap a").slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" ); isSet( $("#ap a").slice(-1), q("mark"), "slice(-1)" ); + + isSet( $("#ap a").eq(1), q("groups"), "eq(1)" ); }); test("map()", function() {