4 <p id=
"description">This test ensures that deleting characters from a password field that follows large content blocks is not slow.
5 To run the test manually, delete the character from the password field. The user agent should not freeze.
</p>
7 <div id=
"content" style=
"height:0px; overflow:hidden;"> </div>
8 <input id=
"field" type=
"password" value=
"A">
10 <script src=
"../editing.js"></script>
12 if (window
.testRunner
)
13 testRunner
.dumpAsText();
15 var newContent
= '<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>';
16 for (var i
= 0; i
< 13; i
++) {
17 newContent
+= newContent
;
20 var contentDiv
= document
.getElementById('content');
21 contentDiv
.innerHTML
= newContent
;
23 document
.getElementById("field").focus();
24 document
.execCommand("Delete");
26 // We clear the content div to avoid having its content appear in the test harness output.
27 if (window
.testRunner
)
28 contentDiv
.innerHTML
= "";