Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / password-delete-performance.html
blobce2520fdb24de14ea9278eb1a7751b941d58c8cb
1 <!DOCTYPE html>
2 <html>
3 <body>
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>
11 <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 = "";
29 </script>
30 </body>
31 </html>