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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 import story
4 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class KeyDesktopSitesPage(page_module.Page): 8 class KeyDesktopSitesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(KeyDesktopSitesPage, self).__init__( 11 super(KeyDesktopSitesPage, self).__init__(
12 url=url, page_set=page_set, credentials_path = 'data/credentials.json') 12 url=url, page_set=page_set, credentials_path = 'data/credentials.json')
13 self.archive_data_file = 'data/key_desktop_sites.json' 13 self.archive_data_file = 'data/key_desktop_sites.json'
14 14
15 def RunPageInteractions(self, action_runner): 15 def RunPageInteractions(self, action_runner):
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 }''' 98 }'''
99 self.credentials = 'google' 99 self.credentials = 'google'
100 100
101 def RunPageInteractions(self, action_runner): 101 def RunPageInteractions(self, action_runner):
102 with action_runner.CreateGestureInteraction('ScrollAction'): 102 with action_runner.CreateGestureInteraction('ScrollAction'):
103 action_runner.ScrollPage() 103 action_runner.ScrollPage()
104 action_runner.WaitForJavaScriptCondition( 104 action_runner.WaitForJavaScriptCondition(
105 'document.getElementsByClassName("kix-appview-editor").length') 105 'document.getElementsByClassName("kix-appview-editor").length')
106 106
107 107
108 class KeyDesktopSitesPageSet(page_set_module.PageSet): 108 class KeyDesktopSitesPageSet(story.StorySet):
109 109
110 """ Sites of Interest """ 110 """ Sites of Interest """
111 111
112 def __init__(self): 112 def __init__(self):
113 super(KeyDesktopSitesPageSet, self).__init__( 113 super(KeyDesktopSitesPageSet, self).__init__(
114 archive_data_file='data/key_desktop_sites.json', 114 archive_data_file='data/key_desktop_sites.json',
115 bucket=page_set_module.PARTNER_BUCKET) 115 cloud_storage_bucket=story.PARTNER_BUCKET)
116 116
117 self.AddUserStory(FacebookPage(self)) 117 self.AddUserStory(FacebookPage(self))
118 self.AddUserStory(GmailPage(self)) 118 self.AddUserStory(GmailPage(self))
119 self.AddUserStory(GoogleCalendarPage(self)) 119 self.AddUserStory(GoogleCalendarPage(self))
120 self.AddUserStory(GoogleDrivePage(self)) 120 self.AddUserStory(GoogleDrivePage(self))
121 self.AddUserStory(GoogleDocPage(self)) 121 self.AddUserStory(GoogleDocPage(self))
122 122
123 urls_list = [ 123 urls_list = [
124 'http://www.google.com/nexus/5/#/', 124 'http://www.google.com/nexus/5/#/',
125 'http://youtube.com', 125 'http://youtube.com',
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 '&q=black%20screen%20amd&colspec=ID%20Pri%20Mstone%20ReleaseBlock%20OS' 836 '&q=black%20screen%20amd&colspec=ID%20Pri%20Mstone%20ReleaseBlock%20OS'
837 '%20Area%20Feature%20Status%20Owner%20Summary'), 837 '%20Area%20Feature%20Status%20Owner%20Summary'),
838 'http://mlb.mlb.com/index.jsp', 838 'http://mlb.mlb.com/index.jsp',
839 'http://www.nfl.com/', 839 'http://www.nfl.com/',
840 'http://airbnb.github.com/infinity/demo-on.html', 840 'http://airbnb.github.com/infinity/demo-on.html',
841 'http://habrahabr.ru/post/149892/#habracut' 841 'http://habrahabr.ru/post/149892/#habracut'
842 ] 842 ]
843 843
844 for url in urls_list: 844 for url in urls_list:
845 self.AddUserStory(KeyDesktopSitesPage(url, self)) 845 self.AddUserStory(KeyDesktopSitesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_desktop_move_cases.py ('k') | tools/perf/page_sets/key_hit_test_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698