~ubuntu-branches/ubuntu/natty/adblock-plus/natty

« back to all changes in this revision

Viewing changes to chrome/content/mochitest/tests/performance/common.js

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-11-05 18:42:36 UTC
  • mto: (25.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: james.westby@ubuntu.com-20101105184236-h7dnu8mbfjaoya62
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function runTests(testFunc, cleanupFunc)
 
1
function runTests(testFunc, cleanupFunc, finalizeFunc)
2
2
{
3
3
  const minRuns = 15;
4
4
  const maxRuns = 400;
21
21
          text += "Run no. " + (i + 1) + ": " + results[i] + " ms\n";
22
22
 
23
23
        document.getElementById("result").textContent = text;
 
24
        if (typeof finalizeFunc == "function")
 
25
          finalizeFunc();
24
26
        return;
25
27
      }
26
28
    }