aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 f5cd8aacf..43a9f22a2 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -148,7 +148,7 @@ test("filter(jQuery)", function() {
})
test("closest()", function() {
- expect(12);
+ expect(13);
same( jQuery("body").closest("body").get(), q("body"), "closest(body)" );
same( jQuery("body").closest("html").get(), q("html"), "closest(html)" );
same( jQuery("body").closest("div").get(), [], "closest(div)" );
@@ -170,6 +170,7 @@ test("closest()", function() {
equals( jQuery("<div><p></p></div>").find("p").closest("table").length, 0, "Make sure disconnected closest work." );
// Bug #7369
equals( jQuery('<div foo="bar"></div>').closest('[foo]').length, 1, "Disconnected nodes with attribute selector" );
+ equals( jQuery('<div></div>').closest('[lang]').length, 0, "Disconnected nodes with non-existent attribute selector" );
});
test("closest(Array)", function() {