Make toArray an alias for .get(). Closes #3999
[jquery.git] / test / unit / core.js
index ac93dda..aad9e6e 100644 (file)
@@ -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" );