X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=58ae68d57aa6e4a7ad2a10492d974e2992f19597;hb=116f3b7c72004f3173a7d92457154a1fdb2180e1;hp=2c2daceb8e5c52f30d8a50ba1968ae7a498c94ec;hpb=97cbd76695a69a973760560689d90d98e550ad7b;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 2c2dace..58ae68d 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -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"] );