<commit_before>/*
 * button_events.js
 */
(function($) {

module("button: events");

test("buttonset works with single-quote named elements (#7505)", function() {
	expect( 1 );
	$("#radio3").buttonset();
	$("#radio33").click( function(){
		ok( true, "button clicks work with single-quote named elements" );
	}).click();
});

test( "when button loses focus, ensure active state is removed (#8559)", function() {
	expect( 1 );

	$("#button").button().keypress( function() {
		$("#button").blur( function() {
			ok( !$("#button").is(".ui-state-active"), "button loses active state appropriately" );
		}).blur();
	}).focus().simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } ).simulate( "keypress", { keyCode: $.ui.keyCode.ENTER } );
});

})(jQuery);<commit_msg>Button tests: fix IE7 fail for latest focus tests<commit_after>/*
 * button_events.js
 */
(function($) {

module("button: events");

test("buttonset works with single-quote named elements (#7505)", function() {
	expect( 1 );
	$("#radio3").buttonset();
	$("#radio33").click( function(){
		ok( true, "button clicks work with single-quote named elements" );
	}).click();
});

test( "when button loses focus, ensure active state is removed (#8559)", function() {
	expect( 1 );

	$("#button").button().keypress( function() {
		$("#button").one( "blur", function() {
			ok( !$("#button").is(".ui-state-active"), "button loses active state appropriately" );
		}).blur();
	}).focus().simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } ).simulate( "keypress", { keyCode: $.ui.keyCode.ENTER } );
});

})(jQuery);
{'fraction_non_alphanumeric': 0.22875399361022364, 'fraction_numerical': 0.017252396166134186, 'mean_word_length': 4.887218045112782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6796356', 'n_tokens_mistral': 526, 'n_tokens_neox': 491, 'n_words': 134}