Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / PerformanceTests / DOM / textarea-dom.html
index d52ec19..b9bd1e2 100644 (file)
@@ -16,10 +16,14 @@ var nodes = [];
 var childCount = 1000;
 for (var i = 0; i < childCount; ++i)
     nodes.push(document.createTextNode('A quick brown fox jumps over the lazy dog.\n'));
-PerfTestRunner.measureRunsPerSecond({run: function() {
-    for (var i = 0; i < childCount; ++i)
-        container.appendChild(nodes[i]);
-    container.innerHTML = '';
-}});
+
+PerfTestRunner.measureRunsPerSecond({
+    description: "Measures performance of adding text nodes to a textarea, then clearing it.",
+    run: function() {
+        for (var i = 0; i < childCount; ++i)
+            container.appendChild(nodes[i]);
+        container.innerHTML = '';
+    }
+});
 </script>
 </body>