<commit_before>/*
 * mobile textinput unit tests
 */
(function($){
	module( "jquery.mobile.forms.textinput.js" );

	// NOTE this test isn't run because the event data isn't easily accessible
	// and with the advent of the widget _on method we are actually testing the
	// widget from UI which has it's own test suite for these sorts of things
	// ie, don't test your dependencies / framework
	if( !( $.fn.jquery.match(/^1.8/) )){
		test( "input is cleaned up on destroy", function(){
			var input = $( "#destroycorrectly" ),
			win = $( window ),
			loadLen;

			loadLen = win.data("events").load.length;

			input.remove();
<commit_msg>[textinput unit tests] Use new versionTest() function to correctly identify jQuery versions less than 1.8<commit_after>/*
 * mobile textinput unit tests
 */
(function($){
	module( "jquery.mobile.forms.textinput.js" );

	// NOTE this test isn't run because the event data isn't easily accessible
	// and with the advent of the widget _on method we are actually testing the
	// widget from UI which has it's own test suite for these sorts of things
	// ie, don't test your dependencies / framework
	if( $.testHelper.versionTest( $.fn.jquery, function( l, r ) { return ( l < r ); }, "1.8" ) ){
		test( "input is cleaned up on destroy", function(){
			var input = $( "#destroycorrectly" ),
			win = $( window ),
			loadLen;

			loadLen = win.data("events").load.length;

			input.remove();

{'fraction_non_alphanumeric': 0.13070976809557272, 'fraction_numerical': 0.004216444132115249, 'mean_word_length': 3.5206349206349206, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2963606', 'n_tokens_mistral': 445, 'n_tokens_neox': 407, 'n_words': 168}