});
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"] );
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"] );
});
test("basic xpath", function() {
- expect(15);
+ expect(16);
ok( jQuery.find("//*").length >= 30, "All Elements (//*)" );
+ ok( jQuery.find("//div", q("main")[0])[0] = q("foo")[0], "All Relative (#main//div)" );
t( "All Div Elements", "//div", ["main","foo"] );
t( "Absolute Path", "/html/body", ["body"] );
t( "Absolute Path w/ *", "/* /body", ["body"] );