runner.js in performance tests should define a class
[WebKit-https.git] / PerformanceTests / Mutation / inner-html.html
index 6821c95b5f100ffa9ceb9e8cea2ac1cf7b74b2b2..3fa45a3f3798a27d2cfc4875a1a71981a91493d7 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <body>
 <pre id="log"></pre>
-<script src="../Parser/resources/runner.js"></script>
+<script src="../resources/runner.js"></script>
 <div id="sandbox" style="display:none"></div>
 <script>
 var sandbox = document.getElementById('sandbox');
@@ -28,7 +28,7 @@ function listener(mutations) {
     if (start) {
         var time = Date.now() - start;
         times.push(time);
-        log(time);
+        PerfTestRunner.log(time);
     }
     if (numRuns-- >= 0) {
         runAgain();
@@ -36,20 +36,20 @@ function listener(mutations) {
         for (var i = 0; i < 100; ++i)
             sandbox.innerHTML = html;
     } else {
-        logStatistics(times);
+        PerfTestRunner.logStatistics(times);
         if (!observing) {
             observer.observe(sandbox, {childList: true});
             observing = true;
             resetState();
-            log('\n------------\n');
-            log('Running ' + numRuns + ' times with observation');
+            PerfTestRunner.log('\n------------\n');
+            PerfTestRunner.log('Running ' + numRuns + ' times with observation');
             setTimeout(runAgain, 0);
         }
     }
 }
 
 resetState();
-log('Running ' + numRuns + ' times without observation');
+PerfTestRunner.log('Running ' + numRuns + ' times without observation');
 window.addEventListener('load', runAgain);
 </script>
 </body>