rem: $("#foo").each(function() { isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" ); }); 
add: t( "nth Element", "p:nth(1)", ["ap"] ); t( "First Element", "p:first", ["firstp"] ); t( "Last Element", "p:last", ["first"] ); t( "Even Elements", "p:even", ["firstp","sndp","sap"] ); t( "Odd Elements", "p:odd", ["ap","en","first"] ); t( "Position Equals", "p:eq(1)", ["ap"] ); t( "Position Greater Than", "p:gt(0)", ["ap","sndp","en","sap","first"] ); t( "Position Less Than", "p:lt(3)", ["firstp","ap","sndp"] ); t( "Is A Parent", "p:parent", ["firstp","ap","sndp","en","sap","first"] ); t( "Is Visible", "input:visible", ["text1","text2","radio1","radio2","check1","check2","name"] ); t( "Is Hidden", "input:hidden", ["hidden1","hidden2"] );  t( "Form element :input", ":input", ["text1", "text2", "radio1", "radio2", "check1", "check2", "hidden1", "hidden2", "name", "button", "area1", "select1", "select2", "select3"] ); t( "Form element :radio", ":radio", ["radio1", "radio2"] ); t( "Form element :checkbox", ":checkbox", ["check1", "check2"] ); t( "Form element :text", ":text", ["text1", "text2", "hidden2", "name"] ); t( "Form element :radio:checked", ":radio:checked", ["radio2"] ); t( "Form element :checkbox:checked", ":checkbox:checked", ["check1"] ); t( "Form element :checkbox:checked, :radio:checked", ":checkbox:checked, :radio:checked", ["check1", "radio2"] ); 
context: test("expressions - basic xpath", function() {	expect(15);	ok( jQuery.find("//*").length >= 30, "All Elements (//*)" );	t( "All Div Elements", "//div", ["main","foo"] );	t( "Absolute Path", "/html/body", ["body"] );	t( "Absolute Path w/ *", "/* /body", ["body"] );	t( "Long Absolute Path", "/html/body/dl/div/div/p", ["sndp","en","sap"] );	t( "Absolute and Relative Paths", "/html//div", ["main","foo"] );	t( "All Children, Explicit", "//code/*", ["anchor1","anchor2"] );	t( "All Children, Implicit", "//code/", ["anchor1","anchor2"] );	t( "Attribute Exists", "//a[@title]", ["google"] );	t( "Attribute Equals", "//a[@rel='bookmark']", ["simon1"] );	t( "Parent Axis", "//p/..", ["main","foo"] );	t( "Sibling Axis", "//p/../", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","sndp","en","sap"] );	t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","sndp","en","sap"] );	t( "Has Children", "//p[a]", ["firstp","ap","en","sap"] );		$("#foo").each(function() {		isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" );	});});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/af79bb1f255433d553d8d9dde0306cc340903c1a/selectorTest.js/buggy/src/selector/selectorTest.js