Attempt build fixes for 32-bit after 159724.
[WebKit-https.git] / LayoutTests / editing / deleting / password-delete-performance.html
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>
6
7         <div id="content" style="height:0px; overflow:hidden;"> </div>
8         <input id="field" type="password" value="A">
9
10         <script src="../editing.js"></script>
11         <script>
12             if (window.testRunner)
13                 testRunner.dumpAsText();
14
15             var newContent = '<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>';
16             for (var i = 0; i < 15; i++) {
17                 newContent += newContent;
18             }
19
20             var contentDiv = document.getElementById('content');
21             contentDiv.innerHTML = newContent;
22
23             document.getElementById("field").focus();
24             document.execCommand("Delete");
25
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>