2009-12-12 Maciej Stachowiak <mjs@apple.com>
[WebKit-https.git] / SunSpider / resources / sunspider-standalone-driver.js
index 22aeb61..3a8a3e9 100644 (file)
@@ -30,9 +30,12 @@ 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();
 }