test("click() context", function() { $('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() { var close = $('spanx', this); ok( close.length == 0, "Element does not exist, length must be zero" ); ok( !close[0], "Element does not exist, direct access to element must return undefined" );  return false; }).click(); 
test("eq(), gt(), lt(), contains()", function() { ok( $("#ap a").eq(1)[0].id == "groups", "eq()" ); isSet( $("#ap a").gt(0).get(), q("groups", "anchor1", "mark"), "gt()" ); isSet( $("#ap a").lt(3).get(), q("google", "groups", "anchor1"), "lt()" ); isSet( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" ); 
test("click() context", function() {	$('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() {	    var close = $('spanx', this); // same with $(this).find('span');	    ok( close.length == 0, "Element does not exist, length must be zero" );	    ok( !close[0], "Element does not exist, direct access to element must return undefined" );	    //console.log( close[0]); // it's the <a> and not a <span> element	    return false;	}).click();});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/495ecb70b2b097e7d4a1ffe46d44562210cdc051/coreTest.js/clean/src/jquery/coreTest.js