aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
authorAnton M <obhvsbypqghgc@gmail.com>2011-02-15 21:01:52 +0100
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-15 21:03:34 +0100
commit8e40a84c24271c0a9253902ceb97185f243a3318 (patch)
treea2ec5520b1a05d929e7da02e250eb95419dc9ecf /test/unit/traversing.js
parent2cc03a86fc046e81013d32a662f4043f1c10b436 (diff)
downloadjquery-8e40a84c24271c0a9253902ceb97185f243a3318.tar.gz
jquery-8e40a84c24271c0a9253902ceb97185f243a3318.zip
Fix some unscoped tests which failed after recent changes to QUnit.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 56fed2200..f5108bdef 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -97,9 +97,9 @@ test("filter(Selector)", 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() {
@@ -178,7 +178,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() {