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

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

Issue 625123002: Make credential_path a page attribute instead of page_set attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to path & path_unittest Created 6 years, 2 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.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class ToughCompositorPage(page_module.Page): 8 class ToughCompositorPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(ToughCompositorPage, self).__init__(url=url, page_set=page_set) 11 super(ToughCompositorPage, self).__init__(
12 self.credentials_path = 'data/credentials.json' 12 url=url, page_set=page_set, credentials_path = 'data/credentials.json')
13 self.user_agent_type = 'mobile' 13 self.user_agent_type = 'mobile'
14 self.archive_data_file = 'data/tough_compositor_cases.json' 14 self.archive_data_file = 'data/tough_compositor_cases.json'
15 15
16 def RunNavigateSteps(self, action_runner): 16 def RunNavigateSteps(self, action_runner):
17 action_runner.NavigateToPage(self) 17 action_runner.NavigateToPage(self)
18 # TODO(epenner): Remove this wait (http://crbug.com/366933) 18 # TODO(epenner): Remove this wait (http://crbug.com/366933)
19 action_runner.Wait(5) 19 action_runner.Wait(5)
20 20
21 class ToughCompositorScrollPage(ToughCompositorPage): 21 class ToughCompositorScrollPage(ToughCompositorPage):
22 22
(...skipping 16 matching lines...) Expand all
39 # We scroll back and forth a few times to reduce noise in the tests. 39 # We scroll back and forth a few times to reduce noise in the tests.
40 action_runner.Wait(8) 40 action_runner.Wait(8)
41 41
42 42
43 class ToughCompositorCasesPageSet(page_set_module.PageSet): 43 class ToughCompositorCasesPageSet(page_set_module.PageSet):
44 44
45 """ Touch compositor sites """ 45 """ Touch compositor sites """
46 46
47 def __init__(self): 47 def __init__(self):
48 super(ToughCompositorCasesPageSet, self).__init__( 48 super(ToughCompositorCasesPageSet, self).__init__(
49 credentials_path='data/credentials.json',
50 user_agent_type='mobile', 49 user_agent_type='mobile',
51 archive_data_file='data/tough_compositor_cases.json', 50 archive_data_file='data/tough_compositor_cases.json',
52 bucket=page_set_module.PUBLIC_BUCKET) 51 bucket=page_set_module.PUBLIC_BUCKET)
53 52
54 scroll_urls_list = [ 53 scroll_urls_list = [
55 # Why: Baseline CC scrolling page. A long page with only text. """ 54 # Why: Baseline CC scrolling page. A long page with only text. """
56 'http://jsbin.com/pixavefe/1/quiet?CC_SCROLL_TEXT_ONLY', 55 'http://jsbin.com/pixavefe/1/quiet?CC_SCROLL_TEXT_ONLY',
57 # Why: Baseline JS scrolling page. A long page with only text. """ 56 # Why: Baseline JS scrolling page. A long page with only text. """
58 'http://jsbin.com/wixadinu/2/quiet?JS_SCROLL_TEXT_ONLY', 57 'http://jsbin.com/wixadinu/2/quiet?JS_SCROLL_TEXT_ONLY',
59 # Why: Scroll by a large number of CC layers """ 58 # Why: Scroll by a large number of CC layers """
60 'http://jsbin.com/yakagevo/1/quiet?CC_SCROLL_200_LAYER_GRID', 59 'http://jsbin.com/yakagevo/1/quiet?CC_SCROLL_200_LAYER_GRID',
61 # Why: Scroll by a large number of JS layers """ 60 # Why: Scroll by a large number of JS layers """
62 'http://jsbin.com/jevibahi/4/quiet?JS_SCROLL_200_LAYER_GRID', 61 'http://jsbin.com/jevibahi/4/quiet?JS_SCROLL_200_LAYER_GRID',
63 ] 62 ]
64 63
65 wait_urls_list = [ 64 wait_urls_list = [
66 # Why: CC Poster circle animates many layers """ 65 # Why: CC Poster circle animates many layers """
67 'http://jsbin.com/falefice/1/quiet?CC_POSTER_CIRCLE', 66 'http://jsbin.com/falefice/1/quiet?CC_POSTER_CIRCLE',
68 # Why: JS poster circle animates/commits many layers """ 67 # Why: JS poster circle animates/commits many layers """
69 'http://jsbin.com/giqafofe/1/quiet?JS_POSTER_CIRCLE', 68 'http://jsbin.com/giqafofe/1/quiet?JS_POSTER_CIRCLE',
70 # Why: JS invalidation does lots of uploads """ 69 # Why: JS invalidation does lots of uploads """
71 'http://jsbin.com/beqojupo/1/quiet?JS_FULL_SCREEN_INVALIDATION', 70 'http://jsbin.com/beqojupo/1/quiet?JS_FULL_SCREEN_INVALIDATION',
72 ] 71 ]
73 72
74 for url in scroll_urls_list: 73 for url in scroll_urls_list:
75 self.AddPage(ToughCompositorScrollPage(url, self)) 74 self.AddPage(ToughCompositorScrollPage(url, self))
76 75
77 for url in wait_urls_list: 76 for url in wait_urls_list:
78 self.AddPage(ToughCompositorWaitPage(url, self)) 77 self.AddPage(ToughCompositorWaitPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/top_desktop_sites_2012Q3.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