5 background-color: lime;
11 <script src=
"../resources/runner.js"></script>
12 <textarea maxlength=
2147483647 id=
"container"></textarea>
14 var container
= document
.getElementById('container');
16 PerfTestRunner
.measureRunsPerSecond({
17 description
: "Measures performance of adding text to a textarea using document.execCommand, then clearing it.",
19 for (var i
= 0; i
< 500; ++i
)
20 document
.execCommand('insertText', false, 'A quick brown fox jumps over the lazy dog.\n');