Simple line layout(regression): Calling innerText on RenderFlow with multiple childre...
[WebKit-https.git] / PerformanceTests / Layout / simple-line-layout-innertext.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>innerText performance test with simple line layout.</title>
5     <script src="../resources/runner.js"></script>
6 </head>
7 <body>
8     <pre id="log"></pre>
9     <div id="target" style="width: 300px;"></div>
10     <div id="result"></div>
11     <script>
12         var target = document.getElementById("target");
13         var result = document.getElementById("result");
14         for (i = 0; i < 500; ++i)
15             target.appendChild(document.createTextNode("foobar"));
16
17         function test() {
18             for (i = 0; i < 10; ++i)
19                 result.innerText += target.innerText;
20             result.innerText = "";
21         }
22         PerfTestRunner.measureRunsPerSecond({ run: test });
23     </script>
24 </body>
25 </html>