diff options
author | Daniel Carl <danielcarl@gmx.de> | 2017-03-02 21:33:41 +0100 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2017-03-02 21:33:41 +0100 |
commit | 9e050c62475775d53d6d3ded39dee66e72f9eb68 (patch) | |
tree | f529709b017916ec8f1bea64857dbd73c4f3cfad /tests | |
parent | 5bd0cba16eade607ff6298e2ff8ab6511defca7c (diff) |
Added manual test pages for focus/blur issues.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/editable-focus-in-iframe.html | 9 | ||||
-rw-r--r-- | tests/manual/editable-focus.html | 41 |
2 files changed, 50 insertions, 0 deletions
diff --git a/tests/manual/editable-focus-in-iframe.html b/tests/manual/editable-focus-in-iframe.html new file mode 100644 index 0000000..46fffe0 --- /dev/null +++ b/tests/manual/editable-focus-in-iframe.html @@ -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 index 0000000..e3cc0f5 --- /dev/null +++ b/tests/manual/editable-focus.html @@ -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> + |