Clear up the test content when test is done.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Apr 2015 18:04:55 +0000 (18:04 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Apr 2015 18:04:55 +0000 (18:04 +0000)
Unreviewed fix.

* Layout/simple-line-layout-innertext.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182744 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/Layout/simple-line-layout-innertext.html

index 44777a2..8a403b2 100644 (file)
@@ -1,3 +1,11 @@
+2015-04-13  Zalan Bujtas  <zalan@apple.com>
+
+        Clear up the test content when test is done.
+
+        Unreviewed fix.
+
+        * Layout/simple-line-layout-innertext.html:
+
 2015-04-09  Zalan Bujtas  <zalan@apple.com>
 
         Simple line layout(regression): Calling innerText on RenderFlow with multiple children is slow.
index e6a74eb..ee974d9 100644 (file)
                 result.innerText += target.innerText;
             result.innerText = "";
         }
-        PerfTestRunner.measureRunsPerSecond({ run: test });
+        
+        function done() {
+               target.innerHTML = "";
+        }
+        
+        PerfTestRunner.measureRunsPerSecond({ run: test, done: done });
     </script>
 </body>
 </html>