diff options
author | jnd@chromium.org <jnd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-19 02:48:11 +0000 |
---|---|---|
committer | jnd@chromium.org <jnd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-19 02:48:11 +0000 |
commit | 4187ef0ef86f933ba64f5350fca483484491620f (patch) | |
tree | 2d9d764d40fd830f53f8319dcf94d1e9956f3d76 /tools/page_cycler | |
parent | 7f8f556408487205d27c3d192e13300418629397 (diff) | |
download | chromium_src-4187ef0ef86f933ba64f5350fca483484491620f.zip chromium_src-4187ef0ef86f933ba64f5350fca483484491620f.tar.gz chromium_src-4187ef0ef86f933ba64f5350fca483484491620f.tar.bz2 |
Wait for test script to be loaded before calling __get_timings by setting a variable to indicate that the result report page is loaded. See detailed analysis in crbug.com/53140.
BUG=53140
Review URL: http://codereview.chromium.org/7904005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101718 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/page_cycler')
-rw-r--r-- | tools/page_cycler/common/head.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/page_cycler/common/head.js b/tools/page_cycler/common/head.js index 19a38dc..39bb220 100644 --- a/tools/page_cycler/common/head.js +++ b/tools/page_cycler/common/head.js @@ -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; |