diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-05-11 15:11:13 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-05-11 15:11:13 -0400 |
commit | 56d5c1c3a3b012b159e56acbb655a14abfcc8894 (patch) | |
tree | 1c3c938159f303e7ef46a2b2be9a8f938619363b /test/unit/traversing.js | |
parent | c5fda2945c14566900d89b08c4202129e629877f (diff) | |
download | jquery-56d5c1c3a3b012b159e56acbb655a14abfcc8894.tar.gz jquery-56d5c1c3a3b012b159e56acbb655a14abfcc8894.zip |
Fix #11738. Remove deprecated .closest(Array) => Array.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index 80d30aa19..39319e4d7 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -299,18 +299,6 @@ test("closest()", function() { equal( jQuery("<div>text</div>").closest("[lang]").length, 0, "Disconnected nodes with text and non-existent attribute selector" ); }); -test("closest(Array)", function() { - expect(7); - deepEqual( jQuery("body").closest(["body"]), [{selector:"body", elem:document.body, level:1}], "closest([body])" ); - deepEqual( jQuery("body").closest(["html"]), [{selector:"html", elem:document.documentElement, level:2}], "closest([html])" ); - deepEqual( jQuery("body").closest(["div"]), [], "closest([div])" ); - deepEqual( jQuery("#yahoo").closest(["div"]), [{"selector":"div", "elem": document.getElementById("foo"), "level": 3}, { "selector": "div", "elem": document.getElementById("qunit-fixture"), "level": 4 }], "closest([div])" ); - deepEqual( jQuery("#qunit-fixture").closest(["span,#html"]), [{selector:"span,#html", elem:document.documentElement, level:4}], "closest([span,#html])" ); - - deepEqual( jQuery("body").closest(["body","html"]), [{selector:"body", elem:document.body, level:1}, {selector:"html", elem:document.documentElement, level:2}], "closest([body, html])" ); - deepEqual( jQuery("body").closest(["span","html"]), [{selector:"html", elem:document.documentElement, level:2}], "closest([body, html])" ); -}); - test("closest(jQuery)", function() { expect(8); var $child = jQuery("#nothiddendivchild"), |