diff options
Diffstat (limited to 'SunSpider/resources/sunspider-standalone-driver.js')
-rw-r--r-- | SunSpider/resources/sunspider-standalone-driver.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/SunSpider/resources/sunspider-standalone-driver.js b/SunSpider/resources/sunspider-standalone-driver.js index 3a8a3e9..a015822 100644 --- a/SunSpider/resources/sunspider-standalone-driver.js +++ b/SunSpider/resources/sunspider-standalone-driver.js @@ -25,12 +25,14 @@ var results = new Array(); +(function(){ + var time = 0; var times = []; times.length = tests.length; for (var j = 0; j < tests.length; j++) { - var testName = "tests/" + suiteName + "/" + tests[j] + ".js"; + var testName = suitePath + "/" + tests[j] + ".js"; var startTime = new Date; if (testName.indexOf('parse-only') >= 0) checkSyntax(testName); @@ -54,3 +56,6 @@ function recordResults(tests, times) } recordResults(tests, times); + +})(); + |