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

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

Issue 277143003: Add NavigateToPage API for action_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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/page/actions/gesture_action_unittest.py
diff --git a/tools/telemetry/telemetry/page/actions/gesture_action_unittest.py b/tools/telemetry/telemetry/page/actions/gesture_action_unittest.py
index 637fad7f6cba2a525a701fda02a73fd6e476671a..76b2dbd9f852faa74e70d02cd257dbcd228bad9c 100644
--- a/tools/telemetry/telemetry/page/actions/gesture_action_unittest.py
+++ b/tools/telemetry/telemetry/page/actions/gesture_action_unittest.py
@@ -13,7 +13,7 @@ class MockGestureAction(gesture_action.GestureAction):
self.sleep_func = sleep_func
super(MockGestureAction, self).__init__(attributes)
- def RunGesture(self, page, tab):
+ def RunGesture(self, tab):
duration = getattr(self, 'duration', 2)
self.sleep_func(duration)
@@ -25,7 +25,7 @@ class GestureActionTest(tab_test_case.TabTestCase):
mock_timer = simple_mock.MockTimer()
action = MockGestureAction(mock_timer.Sleep, { 'duration': 1 })
- action.RunAction(None, self._tab)
+ action.RunAction(self._tab)
self.assertEqual(mock_timer.GetTime(), 1)
def testWaitAfter(self):
@@ -38,7 +38,7 @@ class GestureActionTest(tab_test_case.TabTestCase):
{ 'duration': 1,
'wait_after': { 'seconds': 1 } })
- action.RunAction(None, self._tab)
+ action.RunAction(self._tab)
self.assertEqual(mock_timer.GetTime(), 2)
finally:
wait.time.sleep = real_time_sleep
« no previous file with comments | « tools/telemetry/telemetry/page/actions/gesture_action.py ('k') | tools/telemetry/telemetry/page/actions/interact.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698