diff options
author | Ben Alman <cowboy@rj3.net> | 2010-01-21 09:10:34 +0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-01-24 01:20:53 +0800 |
commit | 28ce15979f69903f2fe1187705b190968757ddf7 (patch) | |
tree | b89b8c024cd5f7a5f17fb248ae3288d39fcec60e /test/unit/traversing.js | |
parent | 09ef5b7598bcdd9e6c254b24b55a54e6bfb2b4ca (diff) | |
download | jquery-28ce15979f69903f2fe1187705b190968757ddf7.tar.gz jquery-28ce15979f69903f2fe1187705b190968757ddf7.zip |
fixed jQuery.dir regression introduced with 1.4 *untils patch that errored when traversing XHTML text nodes with an until test
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index f406ac724..d297ce394 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() { |