| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../js/resources/js-test-pre.js"></script> |
| if (window.layoutTestController) { |
| window.layoutTestController.waitUntilDone(); |
| window.layoutTestController.dumpAsText(); |
| function changeToPasswordField(textField) |
| textField.setAttribute("type", "password"); |
| if (window.layoutTestController) { |
| var field = document.getElementById("field").focus(); |
| eventSender.keyDown("p"); |
| eventSender.keyDown("a"); |
| eventSender.keyDown("s"); |
| eventSender.keyDown("s"); |
| shouldBe('field.value', "'pass'"); |
| window.layoutTestController.notifyDone(); |
| <ol><li>Hit Tab key to focus input field.</li><li>Type some text.</li></ol> |
| <input type="text" id="field" onfocus="changeToPasswordField(this)"> |
| description("Test for <a href=\"https://bugs.webkit.org/show_bug.cgi?id=18900\">Bug 18900: Password field has focus but can't type text (i.rememberthemilk.com)</a>"); |
| successfullyParsed = true; |
| <script src="../js/resources/js-test-post-function.js"></script> |