+2007-10-18 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Eric.
+
+ - Support Windows and Windows browsers.
+
+ * hosted/sunspider-results.html: Display results correctly in IE.
+ * sunspider: tweaks to work on Windows, and with spaces in the path.
+
2007-10-18 Maciej Stachowiak <mjs@apple.com>
Rubber stamped by Oliver.
<script>
var output = eval(decodeURI(location.search.substring(1)));
function print(str) {
- document.getElementById("console").appendChild(document.createTextNode(str + "\n"));
+ var console = document.getElementById("console");
+ console.appendChild(document.createTextNode(str));
+ console.appendChild(document.createElement("br"));
}
</script>
my $prefix = "var tests = [ " . join(", ", map { '"' . $_ . '"' } @tests) . " ];\n";
$prefix .= "var categories = [ " . join(", ", map { '"' . $_ . '"' } @categories) . " ];\n";
-open PREFIX, ">/tmp/sunspider-test-prefix.js";
+mkdir "tmp";
+open PREFIX, ">tmp/sunspider-test-prefix.js";
print PREFIX $prefix;
close PREFIX;
-my $discard = `$jsshell -f /tmp/sunspider-test-prefix.js -f resources/sunspider-standalone-driver.js 2> /dev/null`;
+my $discard = `"$jsshell" -f tmp/sunspider-test-prefix.js -f resources/sunspider-standalone-driver.js 2> /dev/null`;
print "Discarded first run.\n";
my @results = ();
my $total = 0;
while ($count++ < $max) {
- $result = `$jsshell -f /tmp/sunspider-test-prefix.js -f resources/sunspider-standalone-driver.js 2> /dev/null`;
+ $result = `"$jsshell" -f tmp/sunspider-test-prefix.js -f resources/sunspider-standalone-driver.js 2> /dev/null`;
chomp $result;
push @results, $result;
print $result . "\n";
my $output = "var output = [\n" . join(",\n", @results) . "\n];\n";
-open(OUTPUT, ">/tmp/sunspider-results.js");
+open(OUTPUT, ">tmp/sunspider-results.js");
print OUTPUT $output;
close(OUTPUT);
-system("$jsshell -f /tmp/sunspider-test-prefix.js -f /tmp/sunspider-results.js -f resources/sunspider-analyze-results.js");
-
+system("$jsshell", "-f", "tmp/sunspider-test-prefix.js", "-f", "tmp/sunspider-results.js", "-f", "resources/sunspider-analyze-results.js");