X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=d23b4e439df3b6aabc087e29d72bf086d3d32d08;hb=33de9c559789d7f4565c9c57a7152f3ca2721b65;hp=6a383255514455e9b036f24de8ae50f75112ccda;hpb=9c76ac4f6d295a5b593048e54b4c4231c092e58a;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 6a38325..d23b4e4 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -235,15 +235,15 @@ test("child and adjacent", function() { t( "Child w/ Class", "p > a.blog", ["mark","simon"] ); t( "All Children", "code > *", ["anchor1","anchor2"] ); t( "All Grandchildren", "p > * > *", ["anchor1","anchor2"] ); - t( "Adjacent", "a + a", ["groups"] ); - t( "Adjacent", "a +a", ["groups"] ); - t( "Adjacent", "a+ a", ["groups"] ); - t( "Adjacent", "a+a", ["groups"] ); + t( "Adjacent", "#main a + a", ["groups"] ); + t( "Adjacent", "#main a +a", ["groups"] ); + t( "Adjacent", "#main a+ a", ["groups"] ); + t( "Adjacent", "#main a+a", ["groups"] ); t( "Adjacent", "p + p", ["ap","en","sap"] ); t( "Adjacent", "p#firstp + p", ["ap"] ); t( "Adjacent", "p[lang=en] + p", ["sap"] ); t( "Adjacent", "a.GROUPS + code + a", ["mark"] ); - t( "Comma, Child, and Adjacent", "a + a, code > a", ["groups","anchor1","anchor2"] ); + t( "Comma, Child, and Adjacent", "#main a + a, code > a", ["groups","anchor1","anchor2"] ); t( "Element Preceded By", "p ~ div", ["foo", "moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] ); t( "Element Preceded By", "#first ~ div", ["moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] ); t( "Element Preceded By", "#groups ~ a", ["mark"] );