Make sure that the correct args are passed in to the filter callback (and by extension, the not callback). Fixes #5594.
This commit is contained in:
parent
a5f8a14411
commit
88572ee692
2 changed files with 4 additions and 2 deletions
|
@ -64,9 +64,11 @@ test("filter(Selector)", function() {
|
|||
});
|
||||
|
||||
test("filter(Function)", function() {
|
||||
expect(1);
|
||||
expect(2);
|
||||
|
||||
same( jQuery("p").filter(function() { return !jQuery("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );
|
||||
|
||||
same( jQuery("p").filter(function(i, elem) { return !jQuery("a", elem).length }).get(), q("sndp", "first"), "filter(Function) using arg" );
|
||||
});
|
||||
|
||||
test("filter(Element)", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue