dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store original media dimensions as additional header
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
media
/
GIFMetadataExtractorTest.php
diff --git
a/tests/phpunit/includes/media/GIFMetadataExtractorTest.php
b/tests/phpunit/includes/media/GIFMetadataExtractorTest.php
index
6aecd8b
..
d3174fe
100644
(file)
--- a/
tests/phpunit/includes/media/GIFMetadataExtractorTest.php
+++ b/
tests/phpunit/includes/media/GIFMetadataExtractorTest.php
@@
-74,38
+74,44
@@
class GIFMetadataExtractorTest extends MediaWikiTestCase {
EOF;
$xmpNugget = str_replace( "\r", '', $xmpNugget ); // Windows compat
EOF;
$xmpNugget = str_replace( "\r", '', $xmpNugget ); // Windows compat
- return
array(
- array(
+ return
[
+ [
'nonanimated.gif',
'nonanimated.gif',
- array(
- 'comment' =>
array( 'GIF test file ⁕ Created with GIMP' )
,
+ [
+ 'comment' =>
[ 'GIF test file ⁕ Created with GIMP' ]
,
'duration' => 0.1,
'frameCount' => 1,
'looped' => false,
'xmp' => '',
'duration' => 0.1,
'frameCount' => 1,
'looped' => false,
'xmp' => '',
- )
- ),
- array(
+ 'width' => 45,
+ 'height' => 30,
+ ]
+ ],
+ [
'animated.gif',
'animated.gif',
- array(
- 'comment' =>
array( 'GIF test file . Created with GIMP' )
,
+ [
+ 'comment' =>
[ 'GIF test file . Created with GIMP' ]
,
'duration' => 2.4,
'frameCount' => 4,
'looped' => true,
'xmp' => '',
'duration' => 2.4,
'frameCount' => 4,
'looped' => true,
'xmp' => '',
- )
- ),
+ 'width' => 45,
+ 'height' => 30,
+ ]
+ ],
- array(
+ [
'animated-xmp.gif',
'animated-xmp.gif',
- array(
+ [
'xmp' => $xmpNugget,
'duration' => 2.4,
'frameCount' => 4,
'looped' => true,
'xmp' => $xmpNugget,
'duration' => 2.4,
'frameCount' => 4,
'looped' => true,
- 'comment' => array( 'GIƒ·test·file' ),
- )
- ),
- );
+ 'comment' => [ 'GIƒ·test·file' ],
+ 'width' => 45,
+ 'height' => 30,
+ ]
+ ],
+ ];
}
}
}
}