X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=eafd2485cd5c6e1b7af20d8121d6e7d1c173bd9b;hb=9604a0321adbc7baeaef1203b8e36d1a576a40a4;hp=d23b4e439df3b6aabc087e29d72bf086d3d32d08;hpb=4413c2fd93dc3809cb000492c86d8ffba39cf59a;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index d23b4e4..eafd248 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", [] );