Skip to content

Commit f20c974

Browse files
committed
Tweaked some of the selector tests to handle some of the test page changes.
1 parent f89f5eb commit f20c974

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/selector.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ test("pseudo (:) selectors", function() {
326326
t( "Text Contains", "a:contains('Google Groups (Link)')", ["groups"] );
327327
t( "Text Contains", "a:contains('(Link)')", ["groups"] );
328328

329-
t( "Element Preceded By", "p ~ div", ["foo","fx-queue","fx-tests", "moretests","tabindex-tests", "liveHandlerOrder"] );
329+
t( "Element Preceded By", "p ~ div", ["foo", "moretests","tabindex-tests", "liveHandlerOrder"] );
330330
t( "Not", "a.blog:not(.link)", ["mark"] );
331331
t( "Not - multiple", "#form option:not(:contains('Nothing'),#option1b,:selected)", ["option1c", "option1d", "option2b", "option2c", "option3d", "option3e"] );
332332
//t( "Not - complex", "#form option:not([id^='opt']:nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d", "option3e"] );
@@ -358,7 +358,7 @@ test("pseudo (:) selectors", function() {
358358
t( "Position Less Than", "p:lt(3)", ["firstp","ap","sndp"] );
359359
t( "Is A Parent", "p:parent", ["firstp","ap","sndp","en","sap","first"] );
360360
t( "Is Visible", "#form input:visible", [] );
361-
t( "Is Visible", "div:visible:not(.testrunner-toolbar)", ["nothiddendiv", "nothiddendivchild"] );
361+
t( "Is Visible", "div:visible:not(.testrunner-toolbar):lt(2)", ["nothiddendiv", "nothiddendivchild"] );
362362
t( "Is Hidden", "#form input:hidden", ["text1","text2","radio1","radio2","check1","check2","hidden1","hidden2","name"] );
363363
t( "Is Hidden", "#main:hidden", ["main"] );
364364
t( "Is Hidden", "#dl:hidden", ["dl"] );
@@ -374,8 +374,8 @@ test("pseudo (:) selectors", function() {
374374
t( "Check position filtering", "div.nothiddendiv:not(:lt(0))", ["nothiddendiv"] );
375375

376376
t( "Check element position", "div div:eq(0)", ["nothiddendivchild"] );
377-
t( "Check element position", "div div:eq(5)", ["fadeout"] );
378-
t( "Check element position", "div div:eq(27)", ["t2037"] );
377+
t( "Check element position", "div div:eq(5)", ["t2037"] );
378+
t( "Check element position", "div div:eq(27)", ["hide"] );
379379
t( "Check element position", "div div:first", ["nothiddendivchild"] );
380380
t( "Check element position", "div > div:first", ["nothiddendivchild"] );
381381
t( "Check element position", "#dl div:first div:first", ["foo"] );

0 commit comments

Comments
 (0)