]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests 3924/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Sun, 19 Mar 2017 20:15:54 +0000 (21:15 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 19 Mar 2017 20:15:54 +0000 (21:15 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tests/lib/Preview/GeneratorTest.php

index ddb24cdb3ee7438f6e30a85fce0964dddf0c28df..50d46ae932ddeb5df231eea4c580203846b7c90d 100644 (file)
@@ -399,6 +399,10 @@ class GeneratorTest extends \Test\TestCase {
                        );
 
                $result = $this->generator->getPreview($file, $reqX, $reqY, $crop, $mode);
-               $this->assertSame($preview, $result);
+               if ($expectedX === $maxX && $expectedY === $maxY) {
+                       $this->assertSame($maxPreview, $result);
+               } else {
+                       $this->assertSame($preview, $result);
+               }
        }
 }