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

Unified Diff: tools/perf/page_sets/pica.py

Issue 255063002: copy the pica benchmark to polymer_load (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add NOTRY=true Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/measurements/polymer_load.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/pica.py
diff --git a/tools/perf/page_sets/pica.py b/tools/perf/page_sets/pica.py
index cc4867a55c3f6d12e970cba0b7cfd126eabdbece..6ddaebd290d28ecb22f01f9a254f007713de0c73 100644
--- a/tools/perf/page_sets/pica.py
+++ b/tools/perf/page_sets/pica.py
@@ -5,28 +5,16 @@
from telemetry.page.actions.all_page_actions import *
from telemetry.page import page as page_module
from telemetry.page import page_set as page_set_module
+from measurements import polymer_load
-class PicaPage(page_module.PageWithDefaultRunNavigate):
+class PicaPage(polymer_load.PageForPolymerLoad):
def __init__(self, page_set):
super(PicaPage, self).__init__(
url='http://localhost/polymer/projects/pica/',
page_set=page_set)
self.archive_data_file = 'data/pica.json'
- self.script_to_evaluate_on_commit = '''
- document.addEventListener('polymer-ready', function() {
- var unused = document.body.offsetHeight;
- window.__pica_load_time = performance.now();
- setTimeout(function(){window.__polymer_ready=true}, 1000)
- })'''
-
- def RunNavigateSteps(self, action_runner):
- action_runner.RunAction(NavigateAction())
- action_runner.RunAction(WaitAction(
- {
- 'javascript': 'window.__polymer_ready'
- }))
class PicaPageSet(page_set_module.PageSet):
« no previous file with comments | « tools/perf/measurements/polymer_load.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698