same(jQuery("#text1").nextUntil("[class=foo]").get(),jQuery("#text1").nextAll().get(),"Non-element nodes must be skipped, since they have no attributes");
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(){
test("prevUntil([String])",function(){
expect(10);
expect(10);
varelems=jQuery("#area1").prevAll();
varelems=jQuery("#area1").prevAll();
same(jQuery("#area1").prevUntil().get(),elems.get(),"prevUntil with no selector (prevAll)");
same(jQuery("#area1").prevUntil().get(),elems.get(),"prevUntil with no selector (prevAll)");
same(jQuery("#area1").prevUntil(".foo").get(),elems.get(),"prevUntil with invalid selector (prevAll)");
same(jQuery("#area1").prevUntil(".foo").get(),elems.get(),"prevUntil with invalid selector (prevAll)");