Fix selector scope on some tests, so they don't fail on testswarm.

This commit is contained in:
Anton M 2011-01-22 01:12:18 +01:00
parent f1bd0cfc4d
commit 4413c2fd93

View file

@ -235,15 +235,15 @@ test("child and adjacent", function() {
t( "Child w/ Class", "p > a.blog", ["mark","simon"] ); t( "Child w/ Class", "p > a.blog", ["mark","simon"] );
t( "All Children", "code > *", ["anchor1","anchor2"] ); t( "All Children", "code > *", ["anchor1","anchor2"] );
t( "All Grandchildren", "p > * > *", ["anchor1","anchor2"] ); t( "All Grandchildren", "p > * > *", ["anchor1","anchor2"] );
t( "Adjacent", "a + a", ["groups"] ); t( "Adjacent", "#main a + a", ["groups"] );
t( "Adjacent", "a +a", ["groups"] ); t( "Adjacent", "#main a +a", ["groups"] );
t( "Adjacent", "a+ a", ["groups"] ); t( "Adjacent", "#main a+ a", ["groups"] );
t( "Adjacent", "a+a", ["groups"] ); t( "Adjacent", "#main a+a", ["groups"] );
t( "Adjacent", "p + p", ["ap","en","sap"] ); t( "Adjacent", "p + p", ["ap","en","sap"] );
t( "Adjacent", "p#firstp + p", ["ap"] ); t( "Adjacent", "p#firstp + p", ["ap"] );
t( "Adjacent", "p[lang=en] + p", ["sap"] ); t( "Adjacent", "p[lang=en] + p", ["sap"] );
t( "Adjacent", "a.GROUPS + code + a", ["mark"] ); 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", "p ~ div", ["foo", "moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] );
t( "Element Preceded By", "#first ~ div", ["moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] ); t( "Element Preceded By", "#first ~ div", ["moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] );
t( "Element Preceded By", "#groups ~ a", ["mark"] ); t( "Element Preceded By", "#groups ~ a", ["mark"] );