jenkins-bot has submitted this change and it was merged.

Change subject: Adapt unit test to new filetype warning framework
......................................................................


Adapt unit test to new filetype warning framework

MIME type on file page is now wrapped in a span

Bug: T93177
Change-Id: I8ac115504d366691b18437c553e75ef0d032e8ca
---
M tests/PagedTiffHandlerTest.php
1 file changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Umherirrender: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/PagedTiffHandlerTest.php b/tests/PagedTiffHandlerTest.php
index f3f486e..788e325 100644
--- a/tests/PagedTiffHandlerTest.php
+++ b/tests/PagedTiffHandlerTest.php
@@ -27,7 +27,7 @@
        function setUp() {
                parent::setUp();
                $this->handler = new PagedTiffHandler();
-               
+
                $this->multipage_path = $this->filePath . '/multipage.tiff';
                $this->truncated_path = $this->filePath . '/truncated.tiff';
                $this->mhz_path = $this->filePath . '/380mhz.tiff';
@@ -45,7 +45,7 @@
                $this->setMwGlobals( 'wgMaxImageArea', 5e7 );
                $this->setMwGlobals( 'wgTiffIntermediaryScaleStep', 2048 );
        }
-       
+
        function testMetadata() {
                // ---- Metdata initialization
                $this->handler->getMetadata( $this->multipage_image, 
$this->multipage_path );
@@ -98,7 +98,7 @@
                $this->assertTrue( $this->handler->validateParam( 'height', 
'60000' ) );
                $this->assertTrue( $this->handler->validateParam( 'page', 
'60000' ) );
 
-               $this->assertFalse( $this->handler->validateParam( 'lossy', '' 
) ); 
+               $this->assertFalse( $this->handler->validateParam( 'lossy', '' 
) );
                $this->assertFalse( $this->handler->validateParam( 'lossy', 
'quark' ) );
 
                $this->assertFalse( $this->handler->validateParam( 'width', 
'160000' ) );
@@ -210,7 +210,7 @@
 
        function testGetLongDesc() {
                // English
-               $this->assertEquals( $this->handler->getLongDesc( 
$this->multipage_image ), wfMessage( 'tiff-file-info-size', '1,024', '768', 
'2.64 MB', 'image/tiff', '7' )->text() );
+               $this->assertEquals( $this->handler->getLongDesc( 
$this->multipage_image ), wfMessage( 'tiff-file-info-size', '1,024', '768', 
'2.64 MB', '<span class="mime-type">image/tiff</span>', '7' )->text() );
        }
 
        function testPageCount() {
@@ -252,7 +252,7 @@
 
                foreach (  $formattedMetadata['collapsed'] as $k => $e ) {
                        if ( $e['id'] == 'exif-photometricinterpretation' ) {
-                               $this->assertEquals( $e['value'], 'RGB' ); 
+                               $this->assertEquals( $e['value'], 'RGB' );
                        }
                }
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/197870
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8ac115504d366691b18437c553e75ef0d032e8ca
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PagedTiffHandler
Gerrit-Branch: master
Gerrit-Owner: Gilles <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to