Skip to content
Permalink
Browse files

Remove test for bug #7369 to move the fix to a separate branch for a …

…sooner pull
  • Loading branch information...
timmywil
timmywil committed Mar 31, 2011
1 parent 6da3885 commit 1a167767305202797cf4c839eb64bd7adfb00182
Showing with 2 additions and 5 deletions.
  1. +2 −2 src/traversing.js
  2. +0 −3 test/unit/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 );
},
@@ -168,9 +168,6 @@ test("closest()", function() {

// Test on disconnected node
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() {

0 comments on commit 1a16776

Please sign in to comment.
You can’t perform that action at this time.