2 <script src=
"resources/password-echo.js"></script>
5 window
.testRunner
.dumpAsText();
6 window
.internals
.settings
.setPasswordEchoEnabled(false);
7 var testnode
= document
.getElementById('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");
23 <p>Tests that passwords are revealed by calling setShouldRevealPassword()
24 <input type=
"password" id=
"testnode">
25 <ul id=
"console"></ul>