• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html>
2<body>
3<style>
4textarea:valid {
5    background-color: lime;
6}
7textarea:invalid {
8    background-color: red;
9}
10</style>
11<script src="../resources/runner.js"></script>
12<textarea maxlength=2147483647 id="container"></textarea>
13<script>
14var container = document.getElementById('container');
15var nodes = [];
16var childCount = 1000;
17for (var i = 0; i < childCount; ++i)
18    nodes.push(document.createTextNode('A quick brown fox jumps over the lazy dog.\n'));
19PerfTestRunner.measureRunsPerSecond({run: function() {
20    for (var i = 0; i < childCount; ++i)
21        container.appendChild(nodes[i]);
22    container.innerHTML = '';
23}});
24</script>
25</body>
26