rem: var close = $('spanx', this); ok( close.length == 0, "Context element does not exist, length must be zero" ); ok( !close[0], "Context element does not exist, direct access to element must return undefined" ); return false; 
add: var close = $('spanx', this); ok( close.length == 0, "Context element does not exist, length must be zero" ); ok( !close[0], "Context element does not exist, direct access to element must return undefined" ); return false; 
context: test("click()", function() {	expect(4);	$('<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, "Context element does not exist, length must be zero" );	    ok( !close[0], "Context element does not exist, direct access to element must return undefined" );	    return false;	}).click();		$("#check1").click(function() {		ok( true, "click event handler for checkbox gets fired twice, see #815" );	}).click();		var counter = 0;	$('#firstp')[0].onclick = function(event) {		counter++;	};	$('#firstp').click();	ok( counter == 1, "Check that click, triggers onclick event handler also" );});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/66fbbec3bb2d0555da55eea4abae0081484d37b4/event.js/buggy/test/unit/event.js