runner.js in performance tests should define a class
[WebKit-https.git] / PerformanceTests / Mutation / inner-html.html
index 15f608501a098897aca91c947fa67931641f9e68..3fa45a3f3798a27d2cfc4875a1a71981a91493d7 100644 (file)
@@ -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>