Added manual test pages for focus/blur issues.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 2 Mar 2017 20:33:41 +0000 (21:33 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 2 Mar 2017 20:33:41 +0000 (21:33 +0100)
tests/manual/editable-focus-in-iframe.html [new file with mode: 0644]
tests/manual/editable-focus.html [new file with mode: 0644]

diff --git a/tests/manual/editable-focus-in-iframe.html b/tests/manual/editable-focus-in-iframe.html
new file mode 100644 (file)
index 0000000..46fffe0
--- /dev/null
@@ -0,0 +1,9 @@
+<html>
+<head>
+<title>Track Focu/Blur also within iFrames</title>
+</head>
+<body>
+<iframe style="border: 1px solid #000; width: 500px; height: 500px;" src="./editable-focus.html"></iframe>
+</body>
+</html>
+
diff --git a/tests/manual/editable-focus.html b/tests/manual/editable-focus.html
new file mode 100644 (file)
index 0000000..e3cc0f5
--- /dev/null
@@ -0,0 +1,41 @@
+<html>
+<head>
+<title>Input mode Switching</title>
+<script type="text/javascript">
+//<![CDATA[
+function setFocus() {
+    document.getElementById("text").focus();
+}
+//]]>
+</script>
+</head>
+<body onload="setFocus();">
+    <p>
+    Run with <code>scripts=on</code> and <code>strict-focus=off</code>
+    <ol>
+        <li>If page is loade, vimb should be in input mode.</li>
+        <li>Set <code>strict-focus=on</code> and reload page. Vimb should keep
+            in normal mode</li>
+        <li>Independent from the <code>strict-focus</code> should vimb switch
+            to input mode if the button is clicked</li>
+    </ol>
+    </p>
+    <form action="#">
+        <div>
+            <textarea name="text" id="text" rows="11" cols="50"></textarea><br/>
+            <input type="text" name="field1"/><br/>
+            <input type="button" value="Focus Textarea" onclick="document.getElementById('text').focus();"/><br/>
+            <input type="text" name="field2"/>
+        </div>
+    </form>
+    <p>
+    Also the following element using <code>contenteditable="true"</code>
+    should switch vimb into input mode on click.
+    </p>
+    <div contenteditable="true" style="width:50%;height:3em;border:1px solid #000">
+    Clicking this element using contenteditable="true" should
+    switch vimb into input mode too.
+    </div>
+</body>
+</html>
+