Some perf tests time out when ran by run-perf-tests
[WebKit-https.git] / PerformanceTests / Parser / resources / runner.js
index 68b6e3c..b043589 100644 (file)
@@ -74,6 +74,8 @@ function runLoop()
     } else {
         logStatistics(times);
         window.doneFunction();
+        if (window.layoutTestController)
+            layoutTestController.notifyDone();
     }
 }
 
@@ -101,3 +103,8 @@ function start(runCount, runFunction, loopsPerRun, doneFunction) {
     log("Running " + runCount + " times");
     runLoop();
 }
+
+if (window.layoutTestController) {
+    layoutTestController.waitUntilDone();
+    layoutTestController.dumpAsText();
+}