Layout Test editing/deleting/password-delete-performance.html is failing
[WebKit-https.git] / PerformanceTests / Interactive / DeletingInPasswordField.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="content" style="height:0px; overflow:hidden;"> </div>
5 <input id="field" type="password" value="">
6 <script src="../resources/runner.js"></script>
7 <script>
8 var content = document.getElementById('content');
9 var field = document.getElementById('field');
10
11 var newContent = '<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>';
12 for (var i = 0; i < 12; i++)
13     newContent += newContent;
14 content.innerHTML = newContent;
15
16 PerfTestRunner.measureTime({
17     unit: 'ms',
18     setup: function () {
19         field.value = 'A';
20     },
21     run: function () {
22         field.focus();
23         document.execCommand('Delete');
24     },
25     done: function () {
26         content.innerHTML = '';
27     }
28 });
29
30 </script>
31 </body>
32 </html>