Skip to content

Commit

Permalink
Forgot to remove the test cases for XPath [n]. (Ticket #995)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Apr 28, 2007
1 parent 09a2e48 commit e95a6cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/selector/selectorTest.js
Expand Up @@ -90,7 +90,7 @@ test("multiple", function() {
}); });


test("child and adjacent", function() { test("child and adjacent", function() {
expect(22); expect(18);
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"] ); 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 @@ -107,15 +107,11 @@ test("child and adjacent", function() {


t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "First Child", "p:first-child", ["firstp","sndp"] );
t( "Nth Child", "p:nth-child(1)", ["firstp","sndp"] ); t( "Nth Child", "p:nth-child(1)", ["firstp","sndp"] );
t( "First Child, XPath", "p[1]", ["firstp","sndp"] );


t( "Last Child", "p:last-child", ["sap"] ); t( "Last Child", "p:last-child", ["sap"] );
t( "Last Child, XPath", "p[3]", ["sap"] );


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


test("attributes", function() { test("attributes", function() {
Expand Down

0 comments on commit e95a6cc

Please sign in to comment.