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

Unified Diff: tools/telemetry/telemetry/page/actions/wait_until.py

Issue 321253004: Kill wait_until support, which is unused once ClickElementAction is (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/page/actions/page_action.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/actions/wait_until.py
diff --git a/tools/telemetry/telemetry/page/actions/wait_until.py b/tools/telemetry/telemetry/page/actions/wait_until.py
deleted file mode 100644
index e7ce56120c9560fa5b14378fdbec127616e2acb5..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/page/actions/wait_until.py
+++ /dev/null
@@ -1,21 +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.
-
-class WaitUntil(object):
-
- def __init__(self, previous_action, attributes=None):
- assert previous_action is not None, 'wait_until must have a previous action'
- self.timeout = 60
- if attributes:
- for k, v in attributes.iteritems():
- setattr(self, k, v)
- self._previous_action = previous_action
-
- def RunActionAndWait(self, tab):
- if getattr(self, 'condition', None) == 'href_change':
- self._previous_action.WillRunAction(tab)
- old_url = tab.EvaluateJavaScript('document.location.href')
- self._previous_action.RunAction(tab)
- tab.WaitForJavaScriptExpression(
- 'document.location.href != "%s"' % old_url, self.timeout)
« no previous file with comments | « tools/telemetry/telemetry/page/actions/page_action.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698