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

Unified Diff: tools/page_cycler/common/head.js

Issue 7941015: Wait for test script to be loaded before calling __get_timings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 years, 3 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 | « chrome/test/perf/page_cycler_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/page_cycler/common/head.js
diff --git a/tools/page_cycler/common/head.js b/tools/page_cycler/common/head.js
index 19a38dce0121eb93bfb7d17bf5242e29581499b3..0af03ce7fd41e2ba886a172b1e15a7f1028062b8 100644
--- a/tools/page_cycler/common/head.js
+++ b/tools/page_cycler/common/head.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -74,8 +74,11 @@ function __ontimeout() {
document.location.href = url;
}
function __onload() {
- if (__results)
+ if (__results) {
+ // Set a variable to indicate that the result report page is loaded.
+ document.cookie = " __navigated_to_report=1; path=/";
return;
+ }
var unused = document.body.offsetHeight; // force layout
var ts = 0, td = 0, te = (new Date()).getTime(), tf = 0;
« no previous file with comments | « chrome/test/perf/page_cycler_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698