Reviewed by Oliver.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Oct 2007 08:11:55 +0000 (08:11 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Oct 2007 08:11:55 +0000 (08:11 +0000)
        - Fix the browser-hosted driver to be compatible with Safari 2

        * hosted/sunspider-driver.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26813 268f45cc-cd09-0410-ab3c-d52691b4dbfc

SunSpider/ChangeLog
SunSpider/hosted/sunspider-driver.html

index ab8bb026ab99c869e2c0ceeddbd6d8667066b679..450475851acdcdd0b493b9eb0d7e0fb94dddb09b 100644 (file)
@@ -1,3 +1,11 @@
+2007-10-20  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Oliver.
+        
+        - Fix the browser-hosted driver to be compatible with Safari 2
+
+        * hosted/sunspider-driver.html:
+
 2007-10-20  Maciej Stachowiak  <mjs@apple.com>
 
         Rubber stamped by Hyatt.
index c6eb0ec7cb168ca967fd0be43c43cce3a2793d4f..1ec0c0dd41499b877321abee82447d95afabfc03 100644 (file)
@@ -28,7 +28,7 @@
 
 <title>SunSpider JavaScript Benchmark In Progress...</title>
 </head>
-<body>
+<body onload="next()">
 
 <h2>SunSpider JavaScript Benchmark In Progress...</h2>
 
@@ -46,7 +46,7 @@ for (var i = 0; i < output.length; i++) {
 
 function next() 
 {
-    window.setTimeout(reallyNext, 200);
+    window.setTimeout(reallyNext, 500);
 }
 
 function reallyNext() 
@@ -65,6 +65,7 @@ function reallyNext()
 function recordResult(time)
 {
     output[currentRepeat][tests[testIndex]] = time;
+    next();
 }
 
 function finish()
@@ -86,7 +87,7 @@ function finish()
 
 </script>
 
-<iframe id="testframe" onload="next()" width="80%" height="500">
+<iframe id="testframe" width="80%" height="500">
 </iframe>
 
 </body>