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

Unified Diff: telemetry/telemetry/internal/actions/loop_unittest.py

Issue 2453073002: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor (Closed)
Patch Set: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor Created 4 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: telemetry/telemetry/internal/actions/loop_unittest.py
diff --git a/telemetry/telemetry/internal/actions/loop_unittest.py b/telemetry/telemetry/internal/actions/loop_unittest.py
index 690d1c5fda634cc1395f803bcc6de18deb82219b..6438cac54e5abc9e4872576b3c292fc38ebe1320 100644
--- a/telemetry/telemetry/internal/actions/loop_unittest.py
+++ b/telemetry/telemetry/internal/actions/loop_unittest.py
@@ -2,11 +2,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from telemetry.core import exceptions
from telemetry import decorators
from telemetry.internal.actions import loop
from telemetry.testing import tab_test_case
+import py_utils
+
+
AUDIO_1_LOOP_CHECK = 'window.__hasEventCompleted("#audio_1", "loop");'
VIDEO_1_LOOP_CHECK = 'window.__hasEventCompleted("#video_1", "loop");'
@@ -49,4 +51,4 @@ class LoopActionTest(tab_test_case.TabTestCase):
timeout_in_seconds=1)
action.WillRunAction(self._tab)
self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
- self.assertRaises(exceptions.TimeoutException, action.RunAction, self._tab)
+ self.assertRaises(py_utils.TimeoutException, action.RunAction, self._tab)
« no previous file with comments | « telemetry/telemetry/internal/actions/load_media_unittest.py ('k') | telemetry/telemetry/internal/actions/media_action.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698