aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-06-26 17:08:49 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-06-26 17:08:49 -0400
commitcde4c326b82af4679026a202f02799e9fbd18cb4 (patch)
tree6e044b9542dcd6e5e441b18e8a04869892aba283 /test
parent53eb2305fb4e46f9ba08c1a41cdbb78b53787db9 (diff)
downloadjquery-cde4c326b82af4679026a202f02799e9fbd18cb4.tar.gz
jquery-cde4c326b82af4679026a202f02799e9fbd18cb4.zip
Fix #11969. Never a null moment when checking siblings.
Diffstat (limited to 'test')
-rw-r--r--test/unit/traversing.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 9d8900ee7..2712e7f2f 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -467,11 +467,12 @@ test("parentsUntil([String])", function() {
});
test("next([String])", function() {
- expect(4);
+ expect(5);
equal( jQuery("#ap").next()[0].id, "foo", "Simple next check" );
equal( jQuery("#ap").next("div")[0].id, "foo", "Filtered next check" );
equal( jQuery("#ap").next("p").length, 0, "Filtered next check, no match" );
equal( jQuery("#ap").next("div, p")[0].id, "foo", "Multiple filters" );
+ equal( jQuery("body").next().length, 0, "Simple next check, no match" );
});
test("prev([String])", function() {