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

Unified Diff: tools/telemetry/telemetry/wait_action_unittest.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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/wait_action.py ('k') | tools/telemetry/telemetry/web_contents.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/wait_action_unittest.py
diff --git a/tools/telemetry/telemetry/wait_action_unittest.py b/tools/telemetry/telemetry/wait_action_unittest.py
deleted file mode 100644
index 310312ae5fb7acc5cc64f2da8b0c58ce4a162a18..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/wait_action_unittest.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright (c) 2012 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 os
-import time
-
-from telemetry import wait_action
-from telemetry import tab_test_case
-
-class WaitActionTest(tab_test_case.TabTestCase):
- def testWaitAction(self):
- unittest_data_dir = os.path.join(os.path.dirname(__file__),
- '..', 'unittest_data')
- self._browser.SetHTTPServerDirectory(unittest_data_dir)
- self._tab.Navigate(
- self._browser.http_server.UrlOf('blank.html'))
- self._tab.WaitForDocumentReadyStateToBeComplete()
- self.assertEquals(
- self._tab.EvaluateJavaScript('document.location.pathname;'),
- '/blank.html')
-
- i = wait_action.WaitAction({ 'condition': 'duration', 'seconds': 1 })
-
- start_time = time.time()
- i.RunAction(None, self._tab, None)
- self.assertAlmostEqual(time.time() - start_time, 1, places=2)
« no previous file with comments | « tools/telemetry/telemetry/wait_action.py ('k') | tools/telemetry/telemetry/web_contents.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698