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

Unified Diff: client/site_tests/power_LoadTest/extension/testparams.js

Issue 6675052: power_LoadTest: Add parameter for custom tasks (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: More cleanups Created 9 years, 9 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
Index: client/site_tests/power_LoadTest/extension/testparams.js
diff --git a/client/site_tests/power_LoadTest/extension/testparams.js b/client/site_tests/power_LoadTest/extension/testparams.js
index 65ee8c5597343295bd841b043806cde48e2ec34a..c472e9e73dc2a40b021ae899ea81792b547a3538 100644
--- a/client/site_tests/power_LoadTest/extension/testparams.js
+++ b/client/site_tests/power_LoadTest/extension/testparams.js
@@ -11,6 +11,7 @@ var should_scroll_up = false;
var scroll_loop = false;
var scroll_interval_ms = 0;
var scroll_by_pixels = 0;
+var tasks = "";
document.getElementById('myCustomEventDiv').addEventListener('myCustomEvent',
function() {
@@ -22,6 +23,7 @@ document.getElementById('myCustomEventDiv').addEventListener('myCustomEvent',
scroll_loop = document.getElementById('scroll_loop').innerText;
scroll_interval_ms = document.getElementById('scroll_interval_ms').innerText;
scroll_by_pixels = document.getElementById('scroll_by_pixels').innerText;
+ tasks = document.getElementById('tasks').innerText;
// pass to background page via sendRequest.
var request = { _test_time_ms : test_time_ms,
@@ -29,7 +31,8 @@ document.getElementById('myCustomEventDiv').addEventListener('myCustomEvent',
_should_scroll_up : should_scroll_up,
_scroll_loop : scroll_loop,
_scroll_interval_ms : scroll_interval_ms,
- _scroll_by_pixels : scroll_by_pixels
+ _scroll_by_pixels : scroll_by_pixels,
+ _tasks : tasks
}
chrome.extension.sendRequest(request);
}
« no previous file with comments | « client/site_tests/power_LoadTest/extension/params.js ('k') | client/site_tests/power_LoadTest/extension/urls.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698