xref: /aosp_15_r20/external/autotest/client/common_lib/cros/shell.html (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1*9c5db199SXin Li<!--
2*9c5db199SXin Li# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
3*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be
4*9c5db199SXin Li# found in the LICENSE file.
5*9c5db199SXin Li#
6*9c5db199SXin Li# This html file is used by Interactive Tests.  Scripts are able to append
7*9c5db199SXin Li# HTML to the document, including buttons that can call submit_button() on
8*9c5db199SXin Li# click and retrieve the results.
9*9c5db199SXin Li-->
10*9c5db199SXin Li<html>
11*9c5db199SXin Li    <head>
12*9c5db199SXin Li        <title>Interactive Test</title>
13*9c5db199SXin Li        <script language="Javascript">
14*9c5db199SXin Li            window.__ready = 0;
15*9c5db199SXin Li            window.__result = null;
16*9c5db199SXin Li            function submit_button(value) {
17*9c5db199SXin Li                window.__result = value;
18*9c5db199SXin Li                window.__ready = 1;
19*9c5db199SXin Li            };
20*9c5db199SXin Li        </script>
21*9c5db199SXin Li    </head>
22*9c5db199SXin Li    <body>
23*9c5db199SXin Li
24*9c5db199SXin Li    </body>
25*9c5db199SXin Li</html>
26