| Index: tools/perf/measurements/page_cycler.js
|
| diff --git a/tools/perf/measurements/page_cycler.js b/tools/perf/measurements/page_cycler.js
|
| index 73ded1e2ee5a1e681ebe3d3e2bb2c9b41f06c462..46708c66b455120e8be8403f45b1e3f6014324f5 100644
|
| --- a/tools/perf/measurements/page_cycler.js
|
| +++ b/tools/perf/measurements/page_cycler.js
|
| @@ -33,19 +33,12 @@ function __onbeforeunload() {
|
|
|
| // The function |__onload| is used by the DHTML tests.
|
| window.__onload = function() {
|
| - // window.storeCreated is used by the Indexed DB tests.
|
| - if ((!__install_onload_handler || window.storeCreated) &&
|
| - !performance.timing.loadEventEnd)
|
| + if (!__install_onload_handler && !performance.timing.loadEventEnd)
|
| return;
|
|
|
| var unused = document.body.offsetHeight; // force layout
|
|
|
| - testComplete(window.performance.now());
|
| -};
|
| -
|
| -// The function |testComplete| is used by the Indexed DB tests.
|
| -window.testComplete = function(time) {
|
| - window.__pc_load_time = time;
|
| + window.__pc_load_time = window.performance.now();
|
| };
|
|
|
| // The function |__eval_later| now is only used by the DHTML tests.
|
| @@ -58,4 +51,4 @@ if (window.parent == window) { // Ignore subframes.
|
| addEventListener("load", __onload);
|
| addEventListener("beforeunload", __onbeforeunload);
|
| }
|
| -})();
|
| +})();
|
|
|