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("remove()", function() { $("#ap").children().remove(); ok( $("#ap").text().length > 10, "Check text is not removed" ); ok( $("#ap").children().length == 0, "Check remove" );  reset(); $("#ap").children().remove("a"); ok( $("#ap").text().length > 10, "Check text is not removed" ); ok( $("#ap").children().length == 1, "Check filtered remove" ); 
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/7d0a84193f539d85267d1458aba35a42d7dbd03b/coreTest.js/buggy/src/jquery/coreTest.js