spiegel-keyman/web/testing/android-harness/index.html
Marc Durdin c1c6c8ac84 feat(android): Android web-based test harness
This small harness simulates the Android app. I used it to try and
dig deeper into the interactions with selected text in #5853.

It is very rough, but with some extra effort we could use this
relatively easily for some low-level testing of KeymanWeb embedded
integration.
2022-02-22 10:38:20 +11:00

38 lines
No EOL
1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- Set the viewport width to match phone and tablet device widths -->
<meta name="viewport" content="width=device-width,user-scalable=no" />
<!-- Allow KeymanWeb to be saved to the iPhone home screen -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- Enable IE9 Standards mode -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Keyman for Android web harness</title>
<link href="host.css" rel="stylesheet" />
</head>
<body>
<h1>Keyman for Android web harness</h1>
<p>
Sel Start: <input type="text" id="selStart" size="4">
Len: <input type="text" id="selLength" size="4">
<input type="button" id="selChange" value="update">
</p>
<p>
Selection: <span id="selection"></span>
</p>
<textarea cols="40" rows="5" id="ta"></textarea>
<iframe id="iframe"></iframe>
<script src="jquery.min.js"></script>
<script src="host.js"></script>
</body>
</html>