blob: afc0fd1e6f44be4edbfd6738718c917c21110d17 [file] [log] [blame]
<!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>