rem: ok( $("#groups").parents()[0].id == "ap", "Simple parents check" ); ok( $("#groups").parents("p")[0].id == "ap", "Filtered parents check" ); ok( $("#groups").parents("div")[0].id == "main", "Filtered parents check2" ); isSet( $("#groups").parents("p, div").get(), q("ap", "main"), "Check for multiple filters" ); isSet( $("#en, #sndp").parents().get(), q("foo", "main", "dl", "body", "html"), "Check for unique results from parents" ); 
add: ok( $("#groups").parent()[0].id == "ap", "Simple parent check" ); ok( $("#groups").parent("p")[0].id == "ap", "Filtered parent check" ); ok( $("#groups").parent("div").length == 0, "Filtered parent check, no match" ); ok( $("#groups").parent("div, p")[0].id == "ap", "Check for multiple filters" ); isSet( $("#en, #sndp").parent().get(), q("foo"), "Check for unique results from parent" ); 
context: test("parents([String])", function() {	expect(5);	ok( $("#groups").parents()[0].id == "ap", "Simple parents check" );	ok( $("#groups").parents("p")[0].id == "ap", "Filtered parents check" );	ok( $("#groups").parents("div")[0].id == "main", "Filtered parents check2" );	isSet( $("#groups").parents("p, div").get(), q("ap", "main"), "Check for multiple filters" );	isSet( $("#en, #sndp").parents().get(), q("foo", "main", "dl", "body", "html"), "Check for unique results from parents" );});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/1ac9d6fbeed214d59ea5c31a87ff2c19bb08dbc8/core.js/clean/test/unit/core.js