X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Ftraversing.js;h=2793f2f374c3abc734c6ff74b62241cd51b00fd4;hb=67d445a703491c90a7d3c46be34bcdceb4d1c896;hp=46a49bb9788c771f8d0412a580471cc37c093ea2;hpb=67089eedf6f84acd9c16ea2a6dadadf7b13a7c84;p=jquery.git diff --git a/test/unit/traversing.js b/test/unit/traversing.js index 46a49bb..2793f2f 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -145,8 +145,8 @@ test("not(jQuery)", function() { test("andSelf()", function() { expect(4); - isSet( jQuery("#en").siblings().andSelf().get(), q("sndp", "sap","en"), "Check for siblings and self" ); - isSet( jQuery("#foo").children().andSelf().get(), q("sndp", "en", "sap", "foo"), "Check for children and self" ); + isSet( jQuery("#en").siblings().andSelf().get(), q("sndp", "en", "sap"), "Check for siblings and self" ); + isSet( jQuery("#foo").children().andSelf().get(), q("foo", "sndp", "en", "sap"), "Check for children and self" ); isSet( jQuery("#sndp, #en").parent().andSelf().get(), q("foo","sndp","en"), "Check for parent and self" ); isSet( jQuery("#groups").parents("p, div").andSelf().get(), q("main", "ap", "groups"), "Check for parents and self" ); }); @@ -157,7 +157,7 @@ test("siblings([String])", function() { isSet( jQuery("#sndp").siblings(":has(code)").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( jQuery("#sndp").siblings(":has(a)").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" ); isSet( jQuery("#foo").siblings("form, b").get(), q("form", "floatTest", "lengthtest", "name-tests", "testForm"), "Check for multiple filters" ); - var set = q("en", "sap", "sndp"); + var set = q("sndp", "en", "sap"); isSet( jQuery("#en, #sndp").siblings().get(), set, "Check for unique results from siblings" ); });