X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=aad9e6eea6b53d9be60cccd8610a7a5893eb73a7;hb=e124fec5e9cfee77cb23b27c0d43dc2631c83aab;hp=ac93ddaa2edb6bb3042a5c8ee12842b1322d9ec7;hpb=0e2f4a0fe3b26f2eadff19cd3f668a4e99752117;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index ac93dda..aad9e6e 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -328,6 +328,13 @@ test("get()", function() { isSet( jQuery("p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" ); }); +test("toArray()", function() { + expect(1); + isSet ( jQuery("p").toArray(), + q("firstp","ap","sndp","en","sap","first"), + "Convert jQuery object to an Array" ) +}) + test("get(Number)", function() { expect(1); equals( jQuery("p").get(0), document.getElementById("firstp"), "Get A Single Element" );