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

Unified Diff: client/site_tests/power_LoadTest/extension/params.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/params.js
diff --git a/client/site_tests/power_LoadTest/extension/params.js b/client/site_tests/power_LoadTest/extension/params.js
index dca948790f0bafe5d817959d760a774e21f9d9f8..9df4d07696081e8e25f7ddd834671e9456f2f9fd 100644
--- a/client/site_tests/power_LoadTest/extension/params.js
+++ b/client/site_tests/power_LoadTest/extension/params.js
@@ -2,8 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var test_time_ms = 60 * 60 * 1000;
-var test_startup_delay = 5 * 1000;
+// Convert seconds to milliseconds
+function seconds(s) {
+ return s * 1000;
+}
+
+// Convert minutes to milliseconds
+function minutes(m) {
+ return seconds(m * 60);
+}
+
+var test_time_ms = minutes(60);
+var test_startup_delay = seconds(5);
var should_scroll = true;
var should_scroll_up = true;
var scroll_loop = false;
« no previous file with comments | « client/site_tests/power_LoadTest/extension/background.html ('k') | client/site_tests/power_LoadTest/extension/testparams.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698