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

Side by Side Diff: tools/perf/page_sets/calendar_forward_backward.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
« no previous file with comments | « no previous file | tools/perf/page_sets/gmail_alt_threadlist_conversation.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CalendarForwardBackwardPage(page_module.Page): 8 class CalendarForwardBackwardPage(page_module.Page):
9 9
10 """ Why: Click forward(4x) and backwards(4x) repeatedly """ 10 """ Why: Click forward(4x) and backwards(4x) repeatedly """
11 11
12 def __init__(self, page_set): 12 def __init__(self, page_set):
13 super(CalendarForwardBackwardPage, self).__init__( 13 super(CalendarForwardBackwardPage, self).__init__(
14 url='https://www.google.com/calendar/', 14 url='https://www.google.com/calendar/',
15 page_set=page_set, 15 page_set=page_set,
16 name='calendar_forward_backward') 16 name='calendar_forward_backward',
17 self.credentials_path = 'data/credentials.json' 17 credentials_path = 'data/credentials.json')
18 self.credentials = 'google' 18 self.credentials = 'google'
19 self.user_agent_type = 'desktop' 19 self.user_agent_type = 'desktop'
20 self.archive_data_file = 'data/calendar_forward_backward.json' 20 self.archive_data_file = 'data/calendar_forward_backward.json'
21 21
22 def RunNavigateSteps(self, action_runner): 22 def RunNavigateSteps(self, action_runner):
23 action_runner.NavigateToPage(self) 23 action_runner.NavigateToPage(self)
24 action_runner.Wait(2) 24 action_runner.Wait(2)
25 action_runner.WaitForElement('div[class~="navForward"]') 25 action_runner.WaitForElement('div[class~="navForward"]')
26 action_runner.ExecuteJavaScript(''' 26 action_runner.ExecuteJavaScript('''
27 (function() { 27 (function() {
(...skipping 29 matching lines...) Expand all
57 action_runner.Wait(2) 57 action_runner.Wait(2)
58 action_runner.WaitForElement('div[class~="navForward"]') 58 action_runner.WaitForElement('div[class~="navForward"]')
59 59
60 60
61 class CalendarForwardBackwardPageSet(page_set_module.PageSet): 61 class CalendarForwardBackwardPageSet(page_set_module.PageSet):
62 62
63 """ Chrome Endure test for Google Calendar. """ 63 """ Chrome Endure test for Google Calendar. """
64 64
65 def __init__(self): 65 def __init__(self):
66 super(CalendarForwardBackwardPageSet, self).__init__( 66 super(CalendarForwardBackwardPageSet, self).__init__(
67 credentials_path='data/credentials.json',
68 user_agent_type='desktop', 67 user_agent_type='desktop',
69 archive_data_file='data/calendar_forward_backward.json', 68 archive_data_file='data/calendar_forward_backward.json',
70 bucket=page_set_module.PUBLIC_BUCKET) 69 bucket=page_set_module.PUBLIC_BUCKET)
71 70
72 self.AddPage(CalendarForwardBackwardPage(self)) 71 self.AddPage(CalendarForwardBackwardPage(self))
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/gmail_alt_threadlist_conversation.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698