]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed bug in regression test for upscaling turned off
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 31 Oct 2010 02:16:53 +0000 (02:16 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 31 Oct 2010 02:16:53 +0000 (02:16 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7168 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/tests/regression/trac_bugs.php

index 0cc304eaf23e2eeb87f79ac2077256dfcdb91cca..93831fd7e688e1ddbb958ed37ff1b1059c1d504a 100644 (file)
@@ -104,11 +104,11 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest {
                        'y2' => 150
                );
                
-               // should get back the same x/y offset == x1, y1 and an image of 50x50
+               // should get back the same x/y offset == x1, y1 and an image of 25x25
                $params = get_image_resize_parameters($orig_width, $orig_height, $options);
                
-               $this->assertEqual($params['newwidth'], $options['maxwidth']);
-               $this->assertEqual($params['newheight'], $options['maxheight']);
+               $this->assertEqual($params['newwidth'], 25);
+               $this->assertEqual($params['newheight'], 25);
                $this->assertEqual($params['xoffset'], $options['x1']);
                $this->assertEqual($params['yoffset'], $options['y1']);
        }