2009-12-12 Maciej Stachowiak <mjs@apple.com>
[WebKit-https.git] / SunSpider / resources / sunspider-standalone-driver.js
index 3f3186d..3a8a3e9 100644 (file)
@@ -30,11 +30,14 @@ var times = [];
 times.length = tests.length;
 
 for (var j = 0; j < tests.length; j++) {
-    var testName = "tests/" + tests[j] + ".js";
+    var testName = "tests/" + suiteName + "/" + tests[j] + ".js";
     var startTime = new Date;
-    load(testName);
+    if (testName.indexOf('parse-only') >= 0)
+        checkSyntax(testName);
+    else
+        load(testName);
     times[j] = new Date() - startTime;
-    // gc();
+    gc();
 }
 
 function recordResults(tests, times)