1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <link rel=
"stylesheet" href=
"../js/resources/js-test-style.css">
5 <script src=
"../js/resources/js-test-pre.js"></script>
7 if (window
.layoutTestController
) {
8 window
.layoutTestController
.waitUntilDone();
9 window
.layoutTestController
.dumpAsText();
12 function changeToPasswordField(textField
)
14 textField
.setAttribute("type", "password");
19 if (window
.layoutTestController
) {
20 var field
= document
.getElementById("field").focus();
22 eventSender
.keyDown("p");
23 eventSender
.keyDown("a");
24 eventSender
.keyDown("s");
25 eventSender
.keyDown("s");
27 shouldBe('field.value', "'pass'");
28 isSuccessfullyParsed();
30 window
.layoutTestController
.notifyDone();
35 <body onload=
"test()">
36 <ol><li>Hit Tab key to focus input field.
</li><li>Type some text.
</li></ol>
37 <input type=
"text" id=
"field" onfocus=
"changeToPasswordField(this)">
39 <p id=
"description"></p>
40 <div id=
"console"></div>
42 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>");
43 successfullyParsed
= true;
45 <script src=
"../js/resources/js-test-post-function.js"></script>