X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=6ec20bc40ae51d34e5bbc86f2efd468397d0a308;hp=46f787d61cb8fea3128eeadf958daf975c06f042;hb=d1a88b2e588ff9ed5b41396152e936012210d225;hpb=b0e1e83aa987279dcdb81112ec942c161111be17 diff --git a/test/unit/selector.js b/test/unit/selector.js index 46f787d..6ec20bc 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -210,15 +210,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"] );