X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=7303af46f03ca660d4299a03bcb38d5284775a9d;hb=98234b0f93d45cd40ad54d58a584bc099212e8fc;hp=6a383255514455e9b036f24de8ae50f75112ccda;hpb=9c76ac4f6d295a5b593048e54b4c4231c092e58a;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 6a38325..7303af4 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -227,7 +227,7 @@ test("multiple", function() { }); test("child and adjacent", function() { - expect(31); + expect(29); 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"] ); @@ -251,9 +251,6 @@ test("child and adjacent", function() { t( "Element Preceded By", "#siblingfirst ~ em", ["siblingnext"] ); same( jQuery("#siblingfirst").find("~ em").get(), q("siblingnext"), "Element Preceded By with a context." ); same( jQuery("#siblingfirst").find("+ em").get(), q("siblingnext"), "Element Directly Preceded By with a context." ); - var a = jQuery("

"); - same( jQuery("~ p", a[0]).get(), [a[1], a[2]], "Detached Element Directly Preceded By with a context." ); - same( jQuery("+ p", a[0]).get(), [a[1]], "Detached Element Preceded By with a context." ); t( "Verify deep class selector", "div.blah > p > a", [] );