aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-28 12:22:10 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-28 12:22:10 +0000
commit61b18c866c57f9156f746b691517649f2ce628aa (patch)
treed15a1a3ede6d49b7f55e0a5cfb1d9bd4c9e00e8b /test/unit/traversing.js
parentb7a3b220a8a2b5b0378c9f176ca5ae0f786a6fcf (diff)
downloadjquery-61b18c866c57f9156f746b691517649f2ce628aa.tar.gz
jquery-61b18c866c57f9156f746b691517649f2ce628aa.zip
Backing out commit #6507 - causes too many problems.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 16f6043e8..f585d9ca4 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -91,7 +91,7 @@ test("filter(jQuery)", function() {
})
test("closest()", function() {
- expect(9);
+ expect(6);
isSet( jQuery("body").closest("body").get(), q("body"), "closest(body)" );
isSet( jQuery("body").closest("html").get(), q("html"), "closest(html)" );
isSet( jQuery("body").closest("div").get(), [], "closest(div)" );
@@ -99,12 +99,6 @@ test("closest()", function() {
isSet( jQuery("div:eq(1)").closest("div:first").get(), [], "closest(div:first)" );
isSet( jQuery("div").closest("body:first div:last").get(), q("fx-tests"), "closest(body:first div:last)" );
-
- // Test .closest() limited by the context
- var jq = jQuery("#nothiddendivchild", document.body);
- isSet( jq.closest("html").get(), [], "Context limited." );
- isSet( jq.closest("body").get(), [], "Context limited." );
- isSet( jq.closest("#nothiddendiv").get(), q("nothiddendiv"), "Context not reached." );
});
test("not(Selector)", function() {