tweak test
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 19 Feb 2010 17:07:52 +0000 (12:07 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 19 Feb 2010 17:07:52 +0000 (12:07 -0500)
framework/Image/tests/im.php
framework/Image/tests/runtest.php

index d16d3ca..5a37edd 100644 (file)
@@ -229,13 +229,13 @@ case 'testBorderedDropShadowTransparentBG':
 
     $image = getImageObject(array('filename' => 'img1.jpg',
                                   'background' => 'none'));
-    $image->resize(150,150);
+    $image->resize(150,150, true);
     $image->addEffect('Border', array('bordercolor' => '#333', 'borderwidth' => 1));
     $image->addEffect('DropShadow',
                       array('background' => 'none',
-                            'padding' => 10,
-                            'distance' => '10',
-                            'fade' => 5));
+                            'padding' => 5,
+                            'distance' => 8,
+                            'fade' => 2));
     $image->display();
     $time = xdebug_time_index() - $time;
     $memory = xdebug_peak_memory_usage();
index f345424..e586558 100644 (file)
@@ -41,8 +41,8 @@ $allTests = array(
  <thead><td>Effect</td><td>Im</td><td>Imagick</td></thead>
 <?php
 foreach ($allTests as $name => $description) {
-    echo '<tr><td text-align="top">' . $description . '</td><td>' . Horde::img('im.php?test=' . $name, '', '', '') . '</td>' . '</tr>';
-      //'<td text-align="top">' . Horde::img('im.php?test=' . $name . '&driver=Imagick', '', '', '') . '</td></tr>';
+    echo '<tr><td text-align="top">' . $description . '</td><td>' . Horde::img('im.php?test=' . $name, '', '', '') . '</td>' .
+    '<td text-align="top">' . Horde::img('im.php?test=' . $name . '&driver=Imagick', '', '', '') . '</td></tr>';
 }
 echo '</table>';
 ?></body></html>