js/highcharts-master/utils/benchmark/javascript-functions.js
/* Function to be used as a callback for getScriptNames.
 * Creates new rows of individual tests if any
**/
Function to be used as a callback for getScriptNames.
Creates new rows of individual tests if any
Function to be used as a callback for getScriptNames . Creates new rows of individual tests if any
function createRows(group, tests, callback) {
		var list = document.getElementById('testList');
		$.each(tests, function(index) {
			id = tests[index].split('.');
			$(list).append(
				$('<li>').text(id[0]).append(
						$('<button>').attr('class', 'run').attr('id', group+'_'+id[0]).attr('onClick', 'buttonClick(this.id);').text('Run').add(
							$('<span>').attr('class', 'result').attr('id', group+id[0]+'Result').text('-')
						)
					)
				)
		});
		$(list).append(
			$('<li>').attr('class', 'total').text('Group Result').append(
				$('<span>').attr('class', 'result '+group+'Result').text('-')
				)
			);
		callback();
	}
function createRows ( group , tests , callback ) { var list = document . getElementById ( 'testList' ) ; $ . each ( tests , function ( index ) { id = tests [ index ] . split ( '.' ) ; $ ( list ) . append ( $ ( '<li>' ) . text ( id [ 0 ] ) . append ( $ ( '<button>' ) . attr ( 'class' , 'run' ) . attr ( 'id' , group + '_' + id [ 0 ] ) . attr ( 'onClick' , 'buttonClick(this.id);' ) . text ( 'Run' ) . add ( $ ( '<span>' ) . attr ( 'class' , 'result' ) . attr ( 'id' , group + id [ 0 ] + 'Result' ) . text ( '-' ) ) ) ) } ) ; $ ( list ) . append ( $ ( '<li>' ) . attr ( 'class' , 'total' ) . text ( 'Group Result' ) . append ( $ ( '<span>' ) . attr ( 'class' , 'result ' + group + 'Result' ) . text ( '-' ) ) ) ; callback ( ) ; }
Function to be used as a callback for getScriptNames.
Function to be used as a callback for getScriptNames .