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

Unified Diff: tools/perf/page_sets/indexeddb_offline.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
Index: tools/perf/page_sets/indexeddb_offline.py
diff --git a/tools/perf/page_sets/indexeddb_offline.py b/tools/perf/page_sets/indexeddb_offline.py
deleted file mode 100644
index 9e808ee8f59a1b29caccd955824f512ca01a56aa..0000000000000000000000000000000000000000
--- a/tools/perf/page_sets/indexeddb_offline.py
+++ /dev/null
@@ -1,55 +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))
-
-
-class IndexeddbOfflinePage(page_module.Page):
-
- """ Why: Simulates user input while offline and sync while online. """
-
- def __init__(self, page_set):
- super(IndexeddbOfflinePage, self).__init__(
- url='file://endure/indexeddb_app.html',
- page_set=page_set,
- name='indexeddb_offline')
- self.user_agent_type = 'desktop'
-
- def RunNavigateSteps(self, action_runner):
- action_runner.NavigateToPage(self)
- action_runner.WaitForElement(text='initialized')
-
- def RunEndure(self, action_runner):
- action_runner.WaitForElement('button[id="online"]:not(disabled)')
- action_runner.ClickElement('button[id="online"]:not(disabled)')
- action_runner.WaitForElement(
- element_function=_CreateXpathFunction('id("state")[text()="online"]'))
- action_runner.Wait(1)
- action_runner.WaitForElement('button[id="offline"]:not(disabled)')
- action_runner.ClickElement('button[id="offline"]:not(disabled)')
- action_runner.WaitForElement(
- element_function=_CreateXpathFunction('id("state")[text()="offline"]'))
-
-
-class IndexeddbOfflinePageSet(page_set_module.PageSet):
-
- """ Chrome Endure test for IndexedDB. """
-
- def __init__(self):
- super(IndexeddbOfflinePageSet, self).__init__(
- user_agent_type='desktop')
-
- self.AddPage(IndexeddbOfflinePage(self))
« no previous file with comments | « tools/perf/page_sets/gmail_expand_collapse_conversation.py ('k') | tools/perf/page_sets/plus_alt_posts_photos.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698