Merge branch 'master' of git://github.com/jquery/jquery into bug_2773

This commit is contained in:
timmywil 2011-02-26 18:53:25 -05:00
commit 9e5ec378e3
70 changed files with 1736 additions and 15275 deletions

View file

@ -147,9 +147,9 @@ test("filter(Selector|undefined)", function() {
test("filter(Function)", function() {
expect(2);
same( jQuery("p").filter(function() { return !jQuery("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );
same( jQuery("#main 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" );
same( jQuery("#main p").filter(function(i, elem) { return !jQuery("a", elem).length }).get(), q("sndp", "first"), "filter(Function) using arg" );
});
test("filter(Element)", function() {
@ -228,7 +228,7 @@ test("not(Element)", function() {
});
test("not(Function)", function() {
same( jQuery("p").not(function() { return jQuery("a", this).length }).get(), q("sndp", "first"), "not(Function)" );
same( jQuery("#main p").not(function() { return jQuery("a", this).length }).get(), q("sndp", "first"), "not(Function)" );
});
test("not(Array)", function() {