Add an option to run tests automatically on load (?auto=1).
Print test results to console.log.

Patch from Marcus Bulach <bulach@google.com>.



git-svn-id: http://octane-benchmark.googlecode.com/svn/trunk@16 66045a2e-b4ef-80a7-af9a-7fdb847de3c8
diff --git a/index.html b/index.html
index 4a01b23..61ec65b 100644
--- a/index.html
+++ b/index.html
@@ -43,6 +43,7 @@
   }
 
   function AddResult(name, result) {
+    console.log(name + ': ' + result);
     var box = document.getElementById("Result-" + name);
     box.innerHTML = result;
   }
@@ -101,6 +102,8 @@
       console.log("Typed Arrays not supported");
       document.getElementById("warning-header").innerHTML = "Typed Arrays partly or not supported - some tests will be skipped";
     }
+    if (window.document.URL.indexOf('auto=1') >= 0)
+      Run();
   }
 
   function Load() {