Skip to content
Permalink
Browse files
added "#main" ancestor selector to an "Only Child" and "Last Child" t…
…est to fix broken tests caused by QUnit commit abfab1713ccb588aa87136b199a9ddc8d1b56c4b (Aug 29, 2010)
  • Loading branch information
kswedberg committed Sep 7, 2010
1 parent 97cbd76 commit 116f3b7c72004f3173a7d92457154a1fdb2180e1
Showing 1 changed file with 2 additions and 2 deletions.
@@ -278,7 +278,7 @@ test("pseudo - child", function() {
expect(31);
t( "First Child", "p:first-child", ["firstp","sndp"] );
t( "Last Child", "p:last-child", ["sap"] );
t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2","liveLink1","liveLink2"] );
t( "Only Child", "#main a:only-child", ["simon1","anchor1","yahoo","anchor2","liveLink1","liveLink2"] );
t( "Empty", "ul:empty", ["firstUL"] );
t( "Is A Parent", "p:parent", ["firstp","ap","sndp","en","sap","first"] );

@@ -295,7 +295,7 @@ test("pseudo - child", function() {
QUnit.reset();

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

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

3 comments on commit 116f3b7

@jeresig
Copy link
Member

@jeresig jeresig commented on 116f3b7 Sep 8, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which commit is this? I can't find any record of it?

@jasondavies
Copy link

@jasondavies jasondavies commented on 116f3b7 Sep 8, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume he means this one (in the qunit repository).

@jeresig
Copy link
Member

@jeresig jeresig commented on 116f3b7 Sep 8, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh - ok. Yeah, I blame my reading comprehension.

Please sign in to comment.