Commit 1a167767 authored by timmywil's avatar timmywil

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

parent 6da3885c
...@@ -135,7 +135,7 @@ jQuery.fn.extend({ ...@@ -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 ); return this.pushStack( ret, "closest", selectors );
}, },
......
...@@ -168,9 +168,6 @@ test("closest()", function() { ...@@ -168,9 +168,6 @@ test("closest()", function() {
// Test on disconnected node // Test on disconnected node
equals( jQuery("<div><p></p></div>").find("p").closest("table").length, 0, "Make sure disconnected closest work." ); 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() { test("closest(Array)", function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment