diff options
author | antonm@chromium.org <antonm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 11:43:19 +0000 |
---|---|---|
committer | antonm@chromium.org <antonm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 11:43:19 +0000 |
commit | 90e9739e4d6b5b7fb5a5fdb85f412ae507aeb9d3 (patch) | |
tree | bfde27ca31a42c0b1e57299667dd2af51f15b763 /chrome/test | |
parent | 59d8d65e53d3f477f77991f4f2138969bde7d05e (diff) | |
download | chromium_src-90e9739e4d6b5b7fb5a5fdb85f412ae507aeb9d3.zip chromium_src-90e9739e4d6b5b7fb5a5fdb85f412ae507aeb9d3.tar.gz chromium_src-90e9739e4d6b5b7fb5a5fdb85f412ae507aeb9d3.tar.bz2 |
Post aggregated results in post_json mode.
Landing http://codereview.chromium.org/549054 for Pavel.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/data/dromaeo/webrunner.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/test/data/dromaeo/webrunner.js b/chrome/test/data/dromaeo/webrunner.js index 655bcc0..3f5302f 100644 --- a/chrome/test/data/dromaeo/webrunner.js +++ b/chrome/test/data/dromaeo/webrunner.js @@ -384,7 +384,7 @@ } } else if ( dataStore && dataStore.length ) { - if (!automated || post_json) { + if (!automated) { $("body").addClass("alldone"); var div = jQuery("<div class='results'>Saving...</div>").insertBefore("#overview"); jQuery.ajax({ @@ -396,7 +396,14 @@ 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 { + } else if (post_json) { + jQuery.ajax({ + type: "POST", + url: "store.php", + data: "data=" + encodeURIComponent(JSON.stringify(window.automation.GetResults())) + }); + } + else { window.automation.SetDone(); } } |