Reduce test runtime to avoid timeout on slow hardware with debug builds.
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2008 06:40:00 +0000 (06:40 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2008 06:40:00 +0000 (06:40 +0000)
RS=Mark Rowe

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

LayoutTests/ChangeLog
LayoutTests/fast/canvas/canvas-longlived-context.js

index d53bdc2..5bd5239 100644 (file)
@@ -1,3 +1,11 @@
+2008-07-02  Oliver Hunt  <oliver@apple.com>
+
+        RS=Mark Rowe.
+
+        Reduce test runtime to avoid timeout on slow hardware with debug builds.
+
+        * fast/canvas/canvas-longlived-context.js:
+
 2008-07-02  Brady Eidson  <beidson@apple.com>
 
         Reviewed by Mitz Pettel and John Sullivan
index 45a1bdb..4f059b4 100644 (file)
@@ -26,7 +26,7 @@ function prepareCanvas() {
 }
 
 function clobberGC(count) {
-    for (var i = 0; i < 10000; ++i)
+    for (var i = 0; i < 5000; ++i)
         ({a: i*i*i*0.5+"str", b: i/Math.sqrt(i)});
     if (count > 0)
         clobberGC(count-1);
@@ -34,7 +34,7 @@ function clobberGC(count) {
 
 function test() {
     context = prepareCanvas();
-    clobberGC(50);
+    clobberGC(40);
     pixelShouldBe(50, 50, [0, 128, 0, 255]);
 }
 test();