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

Side by Side Diff: tools/perf/page_sets/tough_filters_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 ToughFiltersCasesPage(page_module.Page): 8 class ToughFiltersCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 # Truncate the url to be the name, see crbug.com/662941 11 # Truncate the url to be the name, see crbug.com/662941
12 name = url[:100] 12 name = url[:100]
13 super(ToughFiltersCasesPage, self).__init__( 13 super(ToughFiltersCasesPage, self).__init__(
14 url=url, page_set=page_set, name=name) 14 url=url, page_set=page_set, name=name)
15 15
16 def RunPageInteractions(self, action_runner): 16 def RunPageInteractions(self, action_runner):
17 with action_runner.CreateInteraction('Filter'): 17 with action_runner.CreateInteraction('Filter'):
18 action_runner.Wait(10) 18 action_runner.Wait(10)
19 19
20 20
21 class PirateMarkPage(page_module.Page): 21 class PirateMarkPage(page_module.Page):
22 22
23 def RunPageInteractions(self, action_runner): 23 def RunPageInteractions(self, action_runner):
24 action_runner.WaitForNetworkQuiescence() 24 action_runner.WaitForNetworkQuiescence()
25 with action_runner.CreateInteraction('Filter'): 25 with action_runner.CreateInteraction('Filter'):
26 action_runner.EvaluateJavaScript2( 26 action_runner.EvaluateJavaScript(
27 'document.getElementById("benchmarkButtonText").click()') 27 'document.getElementById("benchmarkButtonText").click()')
28 action_runner.Wait(10) 28 action_runner.Wait(10)
29 29
30 class ToughFiltersCasesPageSet(story.StorySet): 30 class ToughFiltersCasesPageSet(story.StorySet):
31 31
32 """ 32 """
33 Description: Self-driven filters animation examples 33 Description: Self-driven filters animation examples
34 """ 34 """
35 35
36 def __init__(self): 36 def __init__(self):
37 super(ToughFiltersCasesPageSet, self).__init__( 37 super(ToughFiltersCasesPageSet, self).__init__(
38 archive_data_file='data/tough_filters_cases.json', 38 archive_data_file='data/tough_filters_cases.json',
39 cloud_storage_bucket=story.PARTNER_BUCKET) 39 cloud_storage_bucket=story.PARTNER_BUCKET)
40 40
41 urls_list = [ 41 urls_list = [
42 'http://rawgit.com/WebKit/webkit/master/PerformanceTests/Animometer/develo per.html?test-interval=20&display=minimal&controller=fixed&frame-rate=50&kalman- process-error=1&kalman-measurement-error=4&time-measurement=performance&suite-na me=Animometer&test-name=Focus&complexity=100', # pylint: disable=line-too-long 42 'http://rawgit.com/WebKit/webkit/master/PerformanceTests/Animometer/develo per.html?test-interval=20&display=minimal&controller=fixed&frame-rate=50&kalman- process-error=1&kalman-measurement-error=4&time-measurement=performance&suite-na me=Animometer&test-name=Focus&complexity=100', # pylint: disable=line-too-long
43 'http://letmespellitoutforyou.com/samples/svg/filter_terrain.svg', 43 'http://letmespellitoutforyou.com/samples/svg/filter_terrain.svg',
44 'http://static.bobdo.net/Analog_Clock.svg', 44 'http://static.bobdo.net/Analog_Clock.svg',
45 ] 45 ]
46 46
47 for url in urls_list: 47 for url in urls_list:
48 self.AddStory(ToughFiltersCasesPage(url, self)) 48 self.AddStory(ToughFiltersCasesPage(url, self))
49 49
50 self.AddStory(PirateMarkPage( 50 self.AddStory(PirateMarkPage(
51 'http://web.archive.org/web/20150502135732/http://ie.microsoft.com/testd rive/Performance/Pirates/Default.html', self)) # pylint: disable=line-too-long 51 'http://web.archive.org/web/20150502135732/http://ie.microsoft.com/testd rive/Performance/Pirates/Default.html', self)) # pylint: disable=line-too-long
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_energy_cases.py ('k') | tools/perf/page_sets/tough_image_decode_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698