X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=be39a87d9e19931c56cd3135264a6828562e502c;hb=94e59e287a9fde9425cd96713e8130aef06bc431;hp=efee85b35701052f545adb780caafe25e39250ee;hpb=39c05d36493f215155cf446f7d879d3bc96ac2f7;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index efee85b..be39a87 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -263,20 +263,6 @@ test("filter()", function() { isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" ); }); -test("filter(String) - execute callback in fitting context", function() { - expect(1); - $("input").filter(":checked",function(i){ - ok( this == q("radio2", "check1")[i], "Filter elements, context" ); - }); -}); - -test("filter(String) - execute callback in not-fitting context", function() { - expect(1); - $("#main > p#ap > a").filter("#foobar",function(){},function(i){ - ok( this == q("google","groups", "mark")[i], "Filter elements, else context" ); - }); -}); - test("not(String)", function() { ok($("#main > p#ap > a").not("#google").length == 2, "not('selector')") isSet( $("p").not("#ap, #sndp").get(), q("firstp", "en", "sap", "first", "result"), "not('selector, selector')" ); @@ -564,4 +550,8 @@ test("removeClass(String) - add three classes and remove again", function() { if ( div.get(i).className.match(/test|bar|foo/) ) pass = false; } ok( pass, "Remove multiple classes" ); +}); + +test("removeAttr(String", function() { + ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); }); \ No newline at end of file