add:  $("#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" ); }); 
context: 	$('<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();
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/3261544c38ca70cc02c5eed7d0ab2c40c521a588/event.js/clean/test/unit/event.js