X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Ftraversing.js;h=d297ce39485db9510e853207b5d086379e76362a;hb=28ce15979f69903f2fe1187705b190968757ddf7;hp=f406ac724e08e8a631b14c835f2f7cc25326d615;hpb=09ef5b7598bcdd9e6c254b24b55a54e6bfb2b4ca;p=jquery.git diff --git a/test/unit/traversing.js b/test/unit/traversing.js index f406ac7..d297ce3 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -317,7 +317,7 @@ test("prevAll([String])", function() { }); test("nextUntil([String])", function() { - expect(10); + expect(11); var elems = jQuery('#form').children().slice( 2, 12 ); @@ -331,6 +331,8 @@ test("nextUntil([String])", function() { same( jQuery("#text1").nextUntil("#area1", "button,input").get(), elems.get(), "Multiple-filtered nextUntil check" ); equals( jQuery("#text1").nextUntil("#area1", "div").length, 0, "Filtered nextUntil check, no match" ); same( jQuery("#text1, #hidden1").nextUntil("#area1", "button,input").get(), elems.get(), "Multi-source, multiple-filtered nextUntil check" ); + + same( jQuery("#text1").nextUntil("[class=foo]").get(), jQuery("#text1").nextAll().get(), "Non-element nodes must be skipped, since they have no attributes" ); }); test("prevUntil([String])", function() {