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

Side by Side Diff: trunk/src/tools/perf/perf_tools/page_cycler.js

Issue 14119007: Revert 194260 "Revert 194220 "[Telemetry] Make page cyclers more..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function() { 5 (function() {
6 // The Mozilla DHTML performance tests need to explicitly call a function to 6 // The Mozilla DHTML performance tests need to explicitly call a function to
7 // trigger the next page visit, rather than directly using the onload handler. 7 // trigger the next page visit, rather than directly using the onload handler.
8 // To meet needs of the DHTML performance tests without forking this head.js 8 // To meet needs of the DHTML performance tests without forking this head.js
9 // file, use a variable |__install_onload_handler| to indicate whether the 9 // file, use a variable |__install_onload_handler| to indicate whether the
10 // |__onload| handler should be added to onload event listener. 10 // |__onload| handler should be added to onload event listener.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // The function |__eval_later| now is only used by the DHTML tests. 51 // The function |__eval_later| now is only used by the DHTML tests.
52 window.__eval_later = function(expression) { 52 window.__eval_later = function(expression) {
53 setTimeout(expression, __test_timeout); 53 setTimeout(expression, __test_timeout);
54 }; 54 };
55 55
56 if (window.parent == window) { // Ignore subframes. 56 if (window.parent == window) { // Ignore subframes.
57 addEventListener("load", __onload); 57 addEventListener("load", __onload);
58 addEventListener("beforeunload", __onbeforeunload); 58 addEventListener("beforeunload", __onbeforeunload);
59 } 59 }
60 })(); 60 })();
OLDNEW
« no previous file with comments | « trunk/src/tools/perf/page_sets/page_cycler/moz2.json ('k') | trunk/src/tools/perf/perf_tools/page_cycler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698