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

Side by Side Diff: tools/perf/page_sets/tough_canvas_cases.py

Issue 2719853003: [Telemetry refactor] Drop "2" from method calls to JS API (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry import story 5 from telemetry import story
6 6
7 7
8 class ToughCanvasCasesPage(page_module.Page): 8 class ToughCanvasCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(ToughCanvasCasesPage, self).__init__(url=url, page_set=page_set) 11 super(ToughCanvasCasesPage, self).__init__(url=url, page_set=page_set)
12 self.archive_data_file = 'data/tough_canvas_cases.json' 12 self.archive_data_file = 'data/tough_canvas_cases.json'
13 13
14 def RunNavigateSteps(self, action_runner): 14 def RunNavigateSteps(self, action_runner):
15 super(ToughCanvasCasesPage, self).RunNavigateSteps(action_runner) 15 super(ToughCanvasCasesPage, self).RunNavigateSteps(action_runner)
16 action_runner.WaitForJavaScriptCondition2( 16 action_runner.WaitForJavaScriptCondition(
17 "document.readyState == 'complete'") 17 "document.readyState == 'complete'")
18 18
19 def RunPageInteractions(self, action_runner): 19 def RunPageInteractions(self, action_runner):
20 with action_runner.CreateInteraction('CanvasAnimation'): 20 with action_runner.CreateInteraction('CanvasAnimation'):
21 action_runner.Wait(5) 21 action_runner.Wait(5)
22 22
23 23
24 class MicrosofFirefliesPage(ToughCanvasCasesPage): 24 class MicrosofFirefliesPage(ToughCanvasCasesPage):
25 25
26 def __init__(self, page_set): 26 def __init__(self, page_set):
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 'file://tough_canvas_cases/rendering_throughput/fill_shapes.html', 82 'file://tough_canvas_cases/rendering_throughput/fill_shapes.html',
83 'file://tough_canvas_cases/rendering_throughput/stroke_shapes.html', 83 'file://tough_canvas_cases/rendering_throughput/stroke_shapes.html',
84 'file://tough_canvas_cases/rendering_throughput/bouncing_clipped_rectangle s.html', 84 'file://tough_canvas_cases/rendering_throughput/bouncing_clipped_rectangle s.html',
85 'file://tough_canvas_cases/rendering_throughput/bouncing_gradient_circles. html', 85 'file://tough_canvas_cases/rendering_throughput/bouncing_gradient_circles. html',
86 'file://tough_canvas_cases/rendering_throughput/bouncing_svg_images.html', 86 'file://tough_canvas_cases/rendering_throughput/bouncing_svg_images.html',
87 'file://tough_canvas_cases/rendering_throughput/bouncing_png_images.html' 87 'file://tough_canvas_cases/rendering_throughput/bouncing_png_images.html'
88 ] 88 ]
89 89
90 for url in urls_list: 90 for url in urls_list:
91 self.AddStory(ToughCanvasCasesPage(url, self)) 91 self.AddStory(ToughCanvasCasesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_animation_cases.py ('k') | tools/perf/page_sets/tough_energy_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698