From: timmywil Date: Thu, 31 Mar 2011 03:23:38 +0000 (-0400) Subject: Remove test for bug #7369 to move the fix to a separate branch for a sooner pull X-Git-Tag: 1.6b1~32^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a167767305202797cf4c839eb64bd7adfb00182;p=jquery.git Remove test for bug #7369 to move the fix to a separate branch for a sooner pull --- diff --git a/src/traversing.js b/src/traversing.js index 49197c1f7..91bc017e5 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -112,7 +112,7 @@ jQuery.fn.extend({ return ret; } - + // String var pos = POS.test( selectors ) || typeof selectors !== "string" ? jQuery( selectors, context || this.context ) : @@ -135,7 +135,7 @@ jQuery.fn.extend({ } } - ret = ret.length > 1 ? jQuery.unique(ret) : ret; + ret = ret.length > 1 ? jQuery.unique( ret ) : ret; return this.pushStack( ret, "closest", selectors ); }, diff --git a/test/unit/traversing.js b/test/unit/traversing.js index 43a9f22a2..117e46000 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -168,9 +168,6 @@ test("closest()", function() { // Test on disconnected node equals( jQuery("

").find("p").closest("table").length, 0, "Make sure disconnected closest work." ); - // Bug #7369 - equals( jQuery('
').closest('[foo]').length, 1, "Disconnected nodes with attribute selector" ); - equals( jQuery('
').closest('[lang]').length, 0, "Disconnected nodes with non-existent attribute selector" ); }); test("closest(Array)", function() {