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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/compound_interaction.py

Issue 11369075: Chrome remote control multipage tests: Add interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simpler. Created 8 years, 1 month 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/chrome_remote_control/chrome_remote_control/compound_interaction.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/compound_interaction.py b/tools/chrome_remote_control/chrome_remote_control/compound_interaction.py
new file mode 100644
index 0000000000000000000000000000000000000000..34d0dedb9224aeb2bf6e97047b2a9dfe4a8a0f45
--- /dev/null
+++ b/tools/chrome_remote_control/chrome_remote_control/compound_interaction.py
@@ -0,0 +1,17 @@
+# 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.
+from chrome_remote_control import page_interaction
+
+class CompoundInteraction(page_interaction.PageInteraction):
+ def __init__(self, attributes=None):
+ super(CompoundInteraction, self).__init__(attributes)
+
+ def PerformInteraction(self, page, tab):
+ for interaction_data in self.actions:
+ interaction = page_interaction.FindClassWithName(
+ interaction_data['action'])(interaction_data)
+ interaction.PerformInteraction(page, tab)
+
+
+page_interaction.RegisterClass('compound', CompoundInteraction)

Powered by Google App Engine
This is Rietveld 408576698