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

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

Issue 2680763003: Add MotionMark's <canvas> fill and stroke tests to telemetry. (Closed)
Patch Set: Simplify: call parent class constructor directly w/named arguments. Created 3 years, 10 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
« no previous file with comments | « tools/perf/page_sets/data/tough_path_rendering_cases_002.wpr.sha1 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 ToughPathRenderingCasesPage(page_module.Page): 8 class ToughPathRenderingCasesPage(page_module.Page):
9
10 def RunPageInteractions(self, action_runner): 9 def RunPageInteractions(self, action_runner):
11 with action_runner.CreateInteraction('ClickStart'): 10 with action_runner.CreateInteraction('ClickStart'):
12 action_runner.Wait(10) 11 action_runner.Wait(10)
13 12
14 13
15 class ChalkboardPage(page_module.Page): 14 class ChalkboardPage(page_module.Page):
16 15
17 def RunPageInteractions(self, action_runner): 16 def RunPageInteractions(self, action_runner):
18 with action_runner.CreateInteraction('ClickStart'): 17 with action_runner.CreateInteraction('ClickStart'):
19 action_runner.EvaluateJavaScript2( 18 action_runner.EvaluateJavaScript2(
20 'document.getElementById("StartButton").click()') 19 'document.getElementById("StartButton").click()')
21 action_runner.Wait(20) 20 action_runner.Wait(20)
22 21
23 class ToughPathRenderingCasesPageSet(story.StorySet): 22 class ToughPathRenderingCasesPageSet(story.StorySet):
24 23
25 """ 24 """
26 Description: Self-driven path rendering examples 25 Description: Self-driven path rendering examples
27 """ 26 """
28 27
29 def __init__(self): 28 def __init__(self):
30 super(ToughPathRenderingCasesPageSet, self).__init__( 29 super(ToughPathRenderingCasesPageSet, self).__init__(
31 archive_data_file='data/tough_path_rendering_cases.json', 30 archive_data_file='data/tough_path_rendering_cases.json',
32 cloud_storage_bucket=story.PARTNER_BUCKET) 31 cloud_storage_bucket=story.PARTNER_BUCKET)
33 32
34 urls_list = [ 33 page_list = [
35 'http://www.craftymind.com/factory/guimark2/HTML5ChartingTest.html' 34 ('GUIMark Vector Chart Test',
35 'http://www.craftymind.com/factory/guimark2/HTML5ChartingTest.html'),
36 ('MotionMark Canvas Fill Shapes',
37 'http://rawgit.com/WebKit/webkit/master/PerformanceTests/MotionMark/develo per.html?test-name=Fillshapes&test-interval=20&display=minimal&tiles=big&control ler=fixed&frame-rate=50&kalman-process-error=1&kalman-measurement-error=4&time-m easurement=performance&suite-name=Canvassuite&complexity=1000'), # pylint: disab le=line-too-long
38 ('MotionMark Canvas Stroke Shapes',
39 'http://rawgit.com/WebKit/webkit/master/PerformanceTests/MotionMark/develo per.html?test-name=Strokeshapes&test-interval=20&display=minimal&tiles=big&contr oller=fixed&frame-rate=50&kalman-process-error=1&kalman-measurement-error=4&time -measurement=performance&suite-name=Canvassuite&complexity=1000'), # pylint: dis able=line-too-long
36 ] 40 ]
37 41
38 for url in urls_list: 42 for name, url in page_list:
39 self.AddStory(ToughPathRenderingCasesPage(url, self)) 43 self.AddStory(ToughPathRenderingCasesPage(name=name, url=url,
44 page_set=self))
40 45
41 # Chalkboard content linked from 46 # Chalkboard content linked from
42 # http://ie.microsoft.com/testdrive/Performance/Chalkboard/. 47 # http://ie.microsoft.com/testdrive/Performance/Chalkboard/.
43 self.AddStory(ChalkboardPage( 48 self.AddStory(ChalkboardPage(
44 'https://testdrive-archive.azurewebsites.net/performance/chalkboard/', s elf)) 49 'https://testdrive-archive.azurewebsites.net/performance/chalkboard/', s elf))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/tough_path_rendering_cases_002.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698