Backing out disconnected + and ~ tests as they're not something that we actively...
[jquery.git] / test / unit / selector.js
index 6a38325..7303af4 100644 (file)
@@ -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("<div id='foo'></div><p id='bar'></p><p id='bar2'></p>");
-       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", [] );