Chromium Code Reviews| 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({ |