mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Add support for .get(-Number) Closes #4188
This commit is contained in:
@@ -340,6 +340,13 @@ test("get(Number)", function() {
|
||||
equals( jQuery("p").get(0), document.getElementById("firstp"), "Get A Single Element" );
|
||||
});
|
||||
|
||||
test("get(-Number)",function() {
|
||||
expect(1);
|
||||
equals( jQuery("p").get(-1),
|
||||
document.getElementById("first"),
|
||||
"Get a single element with negative index" )
|
||||
})
|
||||
|
||||
test("add(String|Element|Array|undefined)", function() {
|
||||
expect(12);
|
||||
isSet( jQuery("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" );
|
||||
|
||||
Reference in New Issue
Block a user