diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-02-26 18:53:25 -0500 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-02-26 18:53:25 -0500 |
commit | 9e5ec378e35a04f123e82cb1cb5b3eb45254f6f4 (patch) | |
tree | ef79e26f18aed9c20cc61bc54b6dfefa6037d977 /test/unit/traversing.js | |
parent | ed48787ec58c12917faf47e3b95e043b2b6ded10 (diff) | |
parent | 71bd828d9f975fb1047b9fa2a78949cafd8006ac (diff) | |
download | jquery-9e5ec378e35a04f123e82cb1cb5b3eb45254f6f4.tar.gz jquery-9e5ec378e35a04f123e82cb1cb5b3eb45254f6f4.zip |
Merge branch 'master' of git://github.com/jquery/jquery into bug_2773
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index a74ee08b4..9eb0d78ba 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -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() { |