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

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

Issue 616363002: Kill endure benchmark and all that related to it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes that remove --page-repeat 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 | « tools/perf/page_sets/gmail_alt_two_labels.py ('k') | tools/perf/page_sets/indexeddb_offline.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6
7
8 class GmailExpandCollapseConversationPage(
9 page_module.Page):
10
11 """ Why: Expand and Collapse a long conversation. """
12 # TODO(edmundyan): Find a long conversation rather than hardcode url
13
14 def __init__(self, page_set):
15 super(GmailExpandCollapseConversationPage, self).__init__(
16 url='https://mail.google.com/mail/u/0/#inbox/13c6a141fa95ffe0',
17 page_set=page_set,
18 name='gmail_expand_collapse_conversation',
19 credentials_path='data/credentials.json')
20 self.credentials = 'google'
21 self.user_agent_type = 'desktop'
22 self.archive_data_file = 'data/gmail_expand_collapse_conversation.json'
23
24 def RunNavigateSteps(self, action_runner):
25 action_runner.NavigateToPage(self)
26 action_runner.WaitForElement('img[alt="Expand all"]')
27 action_runner.ClickElement('img[alt="Expand all"]')
28 action_runner.Wait(5)
29 action_runner.WaitForElement('img[alt="Collapse all"]')
30 action_runner.ClickElement('img[alt="Collapse all"]')
31 action_runner.Wait(1)
32
33 def RunEndure(self, action_runner):
34 action_runner.WaitForElement('img[alt="Expand all"]')
35 action_runner.ClickElement('img[alt="Expand all"]')
36 action_runner.Wait(1)
37 action_runner.WaitForElement('img[alt="Collapse all"]')
38 action_runner.ClickElement('img[alt="Collapse all"]')
39 action_runner.Wait(1)
40
41
42 class GmailExpandCollapseConversationPageSet(page_set_module.PageSet):
43
44 """
45 Description: Chrome Endure test for GMail.
46 """
47
48 def __init__(self):
49 super(GmailExpandCollapseConversationPageSet, self).__init__(
50 user_agent_type='desktop',
51 archive_data_file='data/gmail_expand_collapse_conversation.json',
52 bucket=page_set_module.PUBLIC_BUCKET)
53
54 self.AddPage(GmailExpandCollapseConversationPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/gmail_alt_two_labels.py ('k') | tools/perf/page_sets/indexeddb_offline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698