From: Daniel Carl <danielcarl@gmx.de> Date: Sat, 29 Nov 2014 22:42:11 +0000 (+0100) Subject: Added manual test for dom focus changes (#112). X-Git-Url: https://git.owens.tech/assets/wrapped.html/assets/wrapped.html/git?a=commitdiff_plain;h=29d87dc5586fdaf36998975735463c9276ca1d3c;p=vimb.git Added manual test for dom focus changes (#112). --- diff --git a/tests/manual/112-editable-focus.html b/tests/manual/112-editable-focus.html new file mode 100644 index 0000000..5219e91 --- /dev/null +++ b/tests/manual/112-editable-focus.html @@ -0,0 +1,32 @@ +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<title>iFrame URI change by HSTS (#146)</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<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="button" value="Focus Textarea" onclick="document.getElementById('text').focus();"/> + </div> + </form> +</body> +</html> +