Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / input / reveal-password.html
blobc80a20ee351631d13566e2a81baaf56bc70c84da
1 <!DOCTYPE html>
2 <script src="resources/password-echo.js"></script>
3 <script>
4 onload = function() {
5 window.testRunner.dumpAsText();
6 window.internals.settings.setPasswordEchoEnabled(false);
7 var testnode = document.getElementById('testnode');
8 setTestNode(testnode);
10 testnode.value = 'test';
11 assert(true, window.find(secureText(testnode.value.length)), "secured by default.");
13 window.getSelection().removeAllRanges();
14 window.internals.setShouldRevealPassword(testnode, true);
15 assert(true, window.find(testnode.value), "properly revealed");
17 window.getSelection().removeAllRanges();
18 window.internals.setShouldRevealPassword(testnode, false);
19 assert(true, window.find(secureText(testnode.value.length)), "hidden again");
21 </script>
23 <p>Tests that passwords are revealed by calling setShouldRevealPassword()
24 <input type="password" id="testnode">
25 <ul id="console"></ul>