Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added extra last-child test.
  • Loading branch information
jeresig committed Jun 29, 2007
1 parent fd249ca commit 614706b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/selector/selectorTest.js
Expand Up @@ -91,7 +91,7 @@ test("multiple", function() {
});

test("child and adjacent", function() {
expect(18);
expect(19);
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"] );
Expand All @@ -110,6 +110,7 @@ test("child and adjacent", function() {
t( "Nth Child", "p:nth-child(1)", ["firstp","sndp"] );

t( "Last Child", "p:last-child", ["sap"] );
t( "Last Child", "a:last-child", ["simon1","anchor1","mark","yahoo","anchor2","simon"] );

t( "Nth-child", "#main form > *:nth-child(2)", ["text2","idTest"] );
t( "Nth-child", "#main form > :nth-child(2)", ["text2","idTest"] );
Expand Down

0 comments on commit 614706b

Please sign in to comment.