function dequeue(){
		if ( interval && queue.length ) {
			queue.shift()();
			
		} else if ( queue.length == 0 ) {
			interval = false;
			time = 0;
			
			$("#overview input").remove();
			updateTimebar();

			if ( window.limitSearch ) {
				var summary = (runStyle === "runs/s" ? Math.pow(Math.E, maxTotal / maxTotalNum) : maxTotal).toFixed(2);

				if ( typeof tpRecordTime !== "undefined" ) {
					tpRecordTime( summary );

				} else {
					var pre = document.createElement("pre");
					pre.style.display = "none";
					pre.innerHTML = "__start_report" + summary + "__end_report";
					document.body.appendChild( pre );
				}

				if ( typeof goQuitApplication !== "undefined" ) {
					goQuitApplication();
				}
	
			} else if ( dataStore && dataStore.length ) {
				if (!automated) {
					$("body").addClass("alldone");
					var div = jQuery("<div class='results'>Saving...</div>").insertBefore("#overview");
					jQuery.ajax({
						type: "POST",
						url: "store.php",
						data: "data=" + encodeURIComponent(JSON.stringify(dataStore)) + "&style=" + runStyle,
						success: function(id){
							var url = window.location.href.replace(/\?.*$/, "") + "?id=" + id;
							div.html("Results saved. You can access them at a later time at the following URL:<br/><strong><a href='" + url + "'>" + url + "</a></strong></div>");
						}
					});
				} else if (post_json) {
					jQuery.ajax({
						type: "POST",
						url: "store.php",
						data: "data=" + encodeURIComponent(JSON.stringify(window.automation.GetResults()))
					});
				}
				else {
					window.automation.SetDone();
				}
			}
		}
	}
// Remove the next test from the queue and execute it
Remove the next test from the queue and execute it
Remove the next test from the queue and execute it
function dequeue(){
		if ( interval && queue.length ) {
			queue.shift()();
		} else if ( queue.length == 0 ) {
			interval = false;
			time = 0;
			$("#overview input").remove();
			updateTimebar();
			if ( window.limitSearch ) {
				var summary = (runStyle === "runs/s" ? Math.pow(Math.E, maxTotal / maxTotalNum) : maxTotal).toFixed(2);
				if ( typeof tpRecordTime !== "undefined" ) {
					tpRecordTime( summary );
				} else {
					var pre = document.createElement("pre");
					pre.style.display = "none";
					pre.innerHTML = "__start_report" + summary + "__end_report";
					document.body.appendChild( pre );
				}
				if ( typeof goQuitApplication !== "undefined" ) {
					goQuitApplication();
				}
			} else if ( dataStore && dataStore.length ) {
				if (!automated) {
					$("body").addClass("alldone");
					var div = jQuery("<div class='results'>Saving...</div>").insertBefore("#overview");
					jQuery.ajax({
						type: "POST",
						url: "store.php",
						data: "data=" + encodeURIComponent(JSON.stringify(dataStore)) + "&style=" + runStyle,
						success: function(id){
							var url = window.location.href.replace(/\?.*$/, "") + "?id=" + id;
							div.html("Results saved. You can access them at a later time at the following URL:<br/><strong><a href='" + url + "'>" + url + "</a></strong></div>");
						}
					});
				} else if (post_json) {
					jQuery.ajax({
						type: "POST",
						url: "store.php",
						data: "data=" + encodeURIComponent(JSON.stringify(window.automation.GetResults()))
					});
				}
				else {
					window.automation.SetDone();
				}
			}
		}
	}
function dequeue ( ) { if ( interval && queue . length ) { queue . shift ( ) ( ) ; } else if ( queue . length == 0 ) { interval = false ; time = 0 ; $ ( "#overview input" ) . remove ( ) ; updateTimebar ( ) ; if ( window . limitSearch ) { var summary = ( runStyle === "runs/s" ? Math . pow ( Math . E , maxTotal / maxTotalNum ) : maxTotal ) . toFixed ( 2 ) ; if ( typeof tpRecordTime !== "undefined" ) { tpRecordTime ( summary ) ; } else { var pre = document . createElement ( "pre" ) ; pre . style . display = "none" ; pre . innerHTML = "__start_report" + summary + "__end_report" ; document . body . appendChild ( pre ) ; } if ( typeof goQuitApplication !== "undefined" ) { goQuitApplication ( ) ; } } else if ( dataStore && dataStore . length ) { if ( ! automated ) { $ ( "body" ) . addClass ( "alldone" ) ; var div = jQuery ( "<div class='results'>Saving...</div>" ) . insertBefore ( "#overview" ) ; jQuery . ajax ( { type : "POST" , url : "store.php" , data : "data=" + encodeURIComponent ( JSON . stringify ( dataStore ) ) + "&style=" + runStyle , success : function ( id ) { var url = window . location . href . replace ( / \?.*$ / , "" ) + "?id=" + id ; div . html ( "Results saved. You can access them at a later time at the following URL:<br/><strong><a href='" + url + "'>" + url + "</a></strong></div>" ) ; } } ) ; } else if ( post_json ) { jQuery . ajax ( { type : "POST" , url : "store.php" , data : "data=" + encodeURIComponent ( JSON . stringify ( window . automation . GetResults ( ) ) ) } ) ; } else { window . automation . SetDone ( ) ; } } } }
Remove the next test from the queue and execute it
Remove the next test from the queue and execute it