Commit 71cddfca authored by mjs@apple.com's avatar mjs@apple.com

Reviewed by Mark.

        
        - Change the format of the output URL to be shorter, to meet IE constraints

        * hosted/sunspider-driver.html:
        * hosted/sunspider-results.html:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f451c4c9
2007-12-17 Maciej Stachowiak <mjs@apple.com>
Reviewed by Mark.
- Change the format of the output URL to be shorter, to meet IE constraints
* hosted/sunspider-driver.html:
* hosted/sunspider-results.html:
2007-12-13 Maciej Stachowiak <mjs@apple.com>
Reviewed by Oliver.
......
......@@ -72,17 +72,17 @@ function recordResult(time)
function finish()
{
var outputString = "[";
for (var i = 0; i < output.length; i++) {
outputString += "{";
for (var test in output[i]) {
outputString += '"' + test + '":' + output[i][test] + ",";
var outputString = "{";
for (var test in output[0]) {
outputString += '"' + test + '":[';
for (var i = 0; i < output.length; i++) {
outputString += output[i][test] + ",";
}
outputString = outputString.substring(0, outputString.length - 1);
outputString += "},";
outputString += "],";
}
outputString = outputString.substring(0, outputString.length - 1);
outputString += "]";
outputString += "}";
location = "sunspider-results.html?" + encodeURI(outputString);
}
......
......@@ -45,7 +45,20 @@
<script>
var output = eval(decodeURI(location.search.substring(1)));
var output = pivot(eval("(" + decodeURI(location.search.substring(1)) + ")"));
function pivot(input) {
var output = [];
for (var test in input) {
for (var i = 0; i < input[test].length; i++) {
if (!output[i])
output[i] = {};
output[i][test] = input[test][i];
}
}
return output;
}
function print(str) {
var console = document.getElementById("console");
console.appendChild(document.createTextNode(str));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment