X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=a9c3e26d1d5b32002a2a91d0811e50cfa4c759f1;hb=a30b3211e68eeea04107059cc82b3c3026138337;hp=0f1e0f5a8ac0c735311650f95b66decc4c639f02;hpb=53e12752e00c2a86757ec15a0c871dee8ccd1bea;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 0f1e0f5..a9c3e26 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -34,7 +34,7 @@ test("get(Number)", function() { test("add(String|Element|Array)", function() { isSet( $("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" ); - + isSet( $("#sndp").add( $("#en")[0] ).add( $("#sap") ).get(), q("sndp", "en", "sap"), "Check elements from document" ); ok( $([]).add($("#form")[0].elements).length > 13, "Check elements from array" ); var x = $([]).add($("

xxx

")).add($("

xxx

")); @@ -494,10 +494,11 @@ test("filter()", function() { isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" ); }); -test("not(String)", function() { - expect(2); +test("not()", function() { + expect(3); ok( $("#main > p#ap > a").not("#google").length == 2, "not('selector')" ); isSet( $("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" ); + isSet( $("p").not($("#ap, #sndp, .result")).get(), q("firstp", "en", "sap", "first"), "not(jQuery)" ); });