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

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

Issue 549054: Post aggregated results in post_json mode. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 11 months 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 36243)
+++ chrome/test/data/dromaeo/webrunner.js (working copy)
@@ -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();
}
}
« 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