git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make toArray an alias for .get(). Closes #3999
[jquery.git]
/
test
/
unit
/
core.js
diff --git
a/test/unit/core.js
b/test/unit/core.js
index
ac93dda
..
aad9e6e
100644
(file)
--- 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" );
});
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" );
test("get(Number)", function() {
expect(1);
equals( jQuery("p").get(0), document.getElementById("firstp"), "Get A Single Element" );