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

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

Issue 356243002: Delete gesture_action.py and remove support for JSON attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address review comments. Created 6 years, 5 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
deleted file mode 100644
index 9a84fcc2d285f2182644f917c86487fb7720ba18..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/page/actions/gesture_action_unittest.py
+++ /dev/null
@@ -1,23 +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.
-
-from telemetry.page.actions import gesture_action
-from telemetry.unittest import tab_test_case
-
-class MockGestureAction(gesture_action.GestureAction):
- """Mock gesture action that simply sleeps for a specified amount of time."""
- def __init__(self):
- super(MockGestureAction, self).__init__()
- self.was_run = False
-
- def RunGesture(self, tab):
- self.was_run = True
-
-
-class GestureActionTest(tab_test_case.TabTestCase):
- def testGestureAction(self):
- """Test that GestureAction.RunAction() calls RunGesture()."""
- action = MockGestureAction()
- action.RunAction(self._tab)
- self.assertTrue(action.was_run)
« no previous file with comments | « tools/telemetry/telemetry/page/actions/gesture_action.py ('k') | tools/telemetry/telemetry/page/actions/javascript_click.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698