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

Unified Diff: tools/telemetry/telemetry/internal/actions/navigate.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/telemetry/telemetry/internal/actions/navigate.py
diff --git a/tools/telemetry/telemetry/internal/actions/navigate.py b/tools/telemetry/telemetry/internal/actions/navigate.py
deleted file mode 100644
index 353eb66b38067d14cb5560358cf85f4ddb7a358e..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/internal/actions/navigate.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 2013 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 time
-
-from telemetry.internal.actions import page_action
-
-
-class NavigateAction(page_action.PageAction):
- def __init__(self, url, script_to_evaluate_on_commit=None,
- timeout_in_seconds=60):
- super(NavigateAction, self).__init__()
- assert url, 'Must specify url for navigate action'
- self._url = url
- self._script_to_evaluate_on_commit = script_to_evaluate_on_commit
- self._timeout_in_seconds = timeout_in_seconds
-
- def RunAction(self, tab):
- start_time = time.time()
- tab.Navigate(self._url,
- self._script_to_evaluate_on_commit,
- self._timeout_in_seconds)
-
- time_left_in_seconds = (start_time + self._timeout_in_seconds
- - time.time())
- time_left_in_seconds = max(0, time_left_in_seconds)
- tab.WaitForDocumentReadyStateToBeInteractiveOrBetter(
- time_left_in_seconds)

Powered by Google App Engine
This is Rietveld 408576698