| <!DOCTYPE html> |
| <html> |
| <body> |
| <div id="content" style="height:0px; overflow:hidden;"> </div> |
| <input id="field" type="password" value=""> |
| <script src="../resources/runner.js"></script> |
| <script> |
| var content = document.getElementById('content'); |
| var field = document.getElementById('field'); |
| |
| var newContent = '<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>'; |
| for (var i = 0; i < 12; i++) |
| newContent += newContent; |
| content.innerHTML = newContent; |
| |
| PerfTestRunner.measureTime({ |
| unit: 'ms', |
| setup: function () { |
| field.value = 'A'; |
| }, |
| run: function () { |
| field.focus(); |
| document.execCommand('Delete'); |
| }, |
| done: function () { |
| content.innerHTML = ''; |
| } |
| }); |
| |
| </script> |
| </body> |
| </html> |