Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7673)

Unified Diff: chrome/test/data/dromaeo/webrunner.js

Issue 501169: Add support for 'post_json' url parameter in dromaeo benchmark Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/dromaeo/webrunner.js
===================================================================
--- chrome/test/data/dromaeo/webrunner.js (revision 35091)
+++ chrome/test/data/dromaeo/webrunner.js (working copy)
@@ -231,6 +231,7 @@
var title, testName, testID, testSummary = {} , testSummaryNum = {}, maxTotal = 0, maxTotalNum = 0;
var nameDone = {};
var automated = false;
+ var post_json = false;
// Query String Parsing
var search = (window.location.search || "?").substr(1);
@@ -271,7 +272,10 @@
if (m)
numTests = Number(m[1]);
- automated = /^automated$/.exec(parts[i]);
+ if (/^automated$/.exec(parts[i]))
+ automated = true;
antonm 2009/12/22 17:07:53 why not as before---automated = /^automated/...?
pavel.podivilov 2009/12/22 17:19:29 In fact automated = /^automated/... will not work
+ if (/^post_json$/.exec(parts[i]))
+ post_json = true;
}
jQuery(function(){
@@ -363,7 +367,7 @@
updateTimebar();
if ( dataStore && dataStore.length ) {
- if (!automated) {
+ if (!automated || post_json) {
$("body").addClass("alldone");
var div = jQuery("<div class='results'>Saving...</div>").insertBefore("#overview");
jQuery.ajax({
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698