Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / password-placeholder-text-security.html
blobb07491c9e6b6314b8c448b581f93dea6fac71c15
1 <html>
2 <head>
3 <script>
4 function test()
6 if (window.testRunner)
7 testRunner.waitUntilDone();
9 // 1) leave field 1 alone. It should show the placeholder text.
10 // 2) focus field 2 and type. It should show bullets for the password.
11 var password = document.getElementById("pass2");
12 password.focus();
13 document.execCommand("InsertText", false, "test");
14 // 3) focus field 3 and type. Clear the value and blur the field. It should show the placeholder text.
15 password = document.getElementById("pass3");
16 password.focus();
17 document.execCommand("InsertText", false, "test");
18 password.value = "";
19 password.blur();
21 if (window.testRunner)
22 testRunner.notifyDone();
24 </script>
25 </head>
26 <body onload="test()">
27 This tests that the text security mode switches correctly when the placeholder appears and disappears.<br>
28 Leave field 1 alone. It should show the placeholder text: <input type="password" id="pass1" placeholder="placeholder"><br>
29 Focus field 2 and type. It should show bullets for the password.: <input type="password" id="pass2" placeholder="placeholder"><br>
30 Focus field 3 and type. Clear the value and blur the field. It should show the placeholder text: <input type="password" id="pass3" placeholder="placeholder"><br>
31 </body>
32 </html>