Add infrastructure for Interactive tests
Inspired by the SemiAuto tests used by the test team, this uses a
similar approach but wrapped in an XML-RPC server deployed to the
client.
BUG=chromium:256771
TEST=server test that uses interactive_client
Change-Id: I8420a2a2ed6fc031b97044d6bbcf32e50cbcf4a4
Reviewed-on: https://gerrit.chromium.org/gerrit/63640
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Scott James Remnant <keybuk@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
diff --git a/client/common_lib/cros/shell.html b/client/common_lib/cros/shell.html
new file mode 100644
index 0000000..5e314cc
--- /dev/null
+++ b/client/common_lib/cros/shell.html
@@ -0,0 +1,25 @@
+<!--
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# This html file is used by Interactive Tests. Scripts are able to append
+# HTML to the document, including buttons that can call submit_button() on
+# click and retrieve the results.
+-->
+<html>
+ <head>
+ <title>Interactive Test</title>
+ <script language="Javascript">
+ window.__ready = 0;
+ window.__result = null;
+ function submit_button(value) {
+ window.__result = value;
+ window.__ready = 1;
+ };
+ </script>
+ </head>
+ <body>
+
+ </body>
+</html>