js/highcharts-master/utils/benchmark/javascript-functions.js
/* Function that prints result and total elements.
**/
Function that prints result and total elements.
Function that prints result and total elements .
function displayResult(result, lastTest) {
		var groupTest = lastTest.split('.')[0],
			group = groupTest.split('/')[0],
			groupTest = groupTest.replace('/',''),
			groupIndex = array_search(group, folders);
		$.get('save-result.php', 
			{ 
				id: groupTest, 
				result: result
			}, 
			function() {
				resultArr[group] = resultArr[group] ? resultArr[group] + result : result;
				testsRanArr[group] = testsRanArr[group] ? testsRanArr[group] + 1 : 1;
				if (testsRanArr[group] === testsToRun[group]) {
					groupIndex++;
					window.location = 'index.php?run='+run+'&groupIndex='+groupIndex+'&result='+resultArr[group];
				} else {
					$('#'+groupTest+'Result').html(result);
				}
			}
		);
	}
function displayResult ( result , lastTest ) { var groupTest = lastTest . split ( '.' ) [ 0 ] , group = groupTest . split ( '/' ) [ 0 ] , groupTest = groupTest . replace ( '/' , '' ) , groupIndex = array_search ( group , folders ) ; $ . get ( 'save-result.php' , { id : groupTest , result : result } , function ( ) { resultArr [ group ] = resultArr [ group ] ? resultArr [ group ] + result : result ; testsRanArr [ group ] = testsRanArr [ group ] ? testsRanArr [ group ] + 1 : 1 ; if ( testsRanArr [ group ] === testsToRun [ group ] ) { groupIndex ++ ; window . location = 'index.php?run=' + run + '&groupIndex=' + groupIndex + '&result=' + resultArr [ group ] ; } else { $ ( '#' + groupTest + 'Result' ) . html ( result ) ; } } ) ; }
Function that prints result and total elements.
Function that prints result and total elements .
// Adds the result of the individual test run to its array