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

Unified Diff: tools/perf/page_sets/gmail_alt_threadlist_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/page_sets/calendar_forward_backward.py ('k') | tools/perf/page_sets/gmail_alt_two_labels.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/gmail_alt_threadlist_conversation.py
diff --git a/tools/perf/page_sets/gmail_alt_threadlist_conversation.py b/tools/perf/page_sets/gmail_alt_threadlist_conversation.py
deleted file mode 100644
index 0b86df6e8d4bab2f35576cd44907cfb404e2dc3b..0000000000000000000000000000000000000000
--- a/tools/perf/page_sets/gmail_alt_threadlist_conversation.py
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import re
-
-from telemetry.page import page as page_module
-from telemetry.page import page_set as page_set_module
-
-
-def _CreateXpathFunction(xpath):
- return ('document.evaluate("%s",'
- 'document,'
- 'null,'
- 'XPathResult.FIRST_ORDERED_NODE_TYPE,'
- 'null)'
- '.singleNodeValue' % re.escape(xpath))
-
-
-def _GetCurrentLocation(action_runner):
- return action_runner.EvaluateJavaScript('document.location.href')
-
-
-def _WaitForLocationChange(action_runner, old_href):
- action_runner.WaitForJavaScriptCondition(
- 'document.location.href != "%s"' % old_href)
-
-
-class GmailAltThreadlistConversationPage(
- page_module.Page):
-
- """ Why: Alternate between Inbox and the first email conversation. """
-
- def __init__(self, page_set):
- super(GmailAltThreadlistConversationPage, self).__init__(
- url='https://mail.google.com/mail/',
- page_set=page_set,
- name='gmail_alt_threadlist_conversation',
- credentials_path = 'data/credentials.json')
- self.user_agent_type = 'desktop'
- self.archive_data_file = 'data/gmail_alt_threadlist_conversation.json'
- self.credentials = 'google'
-
- def RunNavigateSteps(self, action_runner):
- action_runner.NavigateToPage(self)
- action_runner.WaitForJavaScriptCondition(
- 'window.gmonkey !== undefined && '
- 'document.getElementById("gb") !== null')
-
- def RunEndure(self, action_runner):
- old_href = _GetCurrentLocation(action_runner)
- action_runner.ClickElement(
- element_function=_CreateXpathFunction('//span[@email]'))
- _WaitForLocationChange(action_runner, old_href)
- action_runner.Wait(1)
- old_href = _GetCurrentLocation(action_runner)
- action_runner.ClickElement(
- 'a[href="https://mail.google.com/mail/u/0/?shva=1#inbox"]')
- _WaitForLocationChange(action_runner, old_href)
- action_runner.Wait(1)
-
-
-class GmailAltThreadlistConversationPageSet(page_set_module.PageSet):
-
- """ Chrome Endure test for GMail. """
-
- def __init__(self):
- super(GmailAltThreadlistConversationPageSet, self).__init__(
- user_agent_type='desktop',
- archive_data_file='data/gmail_alt_threadlist_conversation.json',
- bucket=page_set_module.PUBLIC_BUCKET)
-
- self.AddPage(GmailAltThreadlistConversationPage(self))
« no previous file with comments | « tools/perf/page_sets/calendar_forward_backward.py ('k') | tools/perf/page_sets/gmail_alt_two_labels.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698