X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=9f29bf6bfa4cd9d35f41871e855d7f1785a43de9;hb=8533da939d933561aa6c516db4e544dba076a988;hp=99cef579fedbecee28fc6222e86473c3b557dd1f;hpb=a720bb31ab32c5629607a471e4674fd11e05b97c;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 99cef57..9f29bf6 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -180,7 +180,7 @@ test("multiple", function() { }); test("child and adjacent", function() { - expect(48); + expect(49); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); @@ -211,6 +211,7 @@ test("child and adjacent", function() { t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Nth Child", "p:nth-child(1)", ["firstp","sndp"] ); + t( "Not Nth Child", "p:not(:nth-child(1))", ["ap","en","sap","first"] ); // Verify that the child position isn't being cached improperly jQuery("p:first-child").after("
");