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

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

Issue 11369075: Chrome remote control multipage tests: Add interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: code review (nduca) 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/telemetry/telemetry/compound_interaction.py
diff --git a/tools/telemetry/telemetry/compound_interaction.py b/tools/telemetry/telemetry/compound_interaction.py
new file mode 100644
index 0000000000000000000000000000000000000000..2ff48b036dbe2c7da56291ec6de5a0a9061f2c96
--- /dev/null
+++ b/tools/telemetry/telemetry/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 telemetry 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