mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-28 02:00:42 +00:00
Update parserTests to new format for 'property' option
In I845694d4f2109a8b9125410e8533ca69bbea50fa we changed the format of parser tests using the 'property' option. This updates the parser tests in PageImages to the new format used for metadata in parser tests (in this case, adding `!! metadata` sections). Depends-On: I845694d4f2109a8b9125410e8533ca69bbea50fa Change-Id: Ia7060c9bfcdebe9783ea48d429442bcdbaac459e
This commit is contained in:
parent
0ec66379d1
commit
58fc38be13
|
@ -8,10 +8,11 @@ property=page_image_free
|
||||||
wgParserEnableLegacyMediaDOM=false
|
wgParserEnableLegacyMediaDOM=false
|
||||||
!! wikitext
|
!! wikitext
|
||||||
[[File:Foobar.jpg]]
|
[[File:Foobar.jpg]]
|
||||||
|
!! metadata
|
||||||
|
property[page_image_free]=Foobar.jpg
|
||||||
!! html
|
!! html
|
||||||
<p><span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a></span>
|
<p><span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a></span>
|
||||||
</p>
|
</p>
|
||||||
property[page_image_free]=Foobar.jpg
|
|
||||||
!! end
|
!! end
|
||||||
|
|
||||||
!! test
|
!! test
|
||||||
|
@ -23,11 +24,12 @@ wgParserEnableLegacyMediaDOM=false
|
||||||
!! wikitext
|
!! wikitext
|
||||||
[[File:Thumb.png]]
|
[[File:Thumb.png]]
|
||||||
[[File:Foobar.jpg]]
|
[[File:Foobar.jpg]]
|
||||||
|
!! metadata
|
||||||
|
property[page_image_free]=Foobar.jpg
|
||||||
!! html
|
!! html
|
||||||
<p><span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Thumb.png" class="mw-file-description"><img src="http://example.com/images/e/ea/Thumb.png" decoding="async" width="135" height="135" /></a></span>
|
<p><span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Thumb.png" class="mw-file-description"><img src="http://example.com/images/e/ea/Thumb.png" decoding="async" width="135" height="135" /></a></span>
|
||||||
<span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a></span>
|
<span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a></span>
|
||||||
</p>
|
</p>
|
||||||
property[page_image_free]=Foobar.jpg
|
|
||||||
!! end
|
!! end
|
||||||
|
|
||||||
!! test
|
!! test
|
||||||
|
@ -35,6 +37,8 @@ PageImages with best excluded by wgPageImagesLeadSectionOnly
|
||||||
!! options
|
!! options
|
||||||
property=page_image_free
|
property=page_image_free
|
||||||
disabled
|
disabled
|
||||||
|
!! metadata
|
||||||
|
property[page_image_free]=Thumb.png
|
||||||
!! wikitext
|
!! wikitext
|
||||||
[[File:Thumb.png]]
|
[[File:Thumb.png]]
|
||||||
|
|
||||||
|
@ -47,5 +51,4 @@ disabled
|
||||||
<h2><span class="mw-headline" id="Section">Section</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
|
<h2><span class="mw-headline" id="Section">Section</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
|
||||||
<p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a>
|
<p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a>
|
||||||
</p>
|
</p>
|
||||||
property[page_image_free]=Thumb.png
|
|
||||||
!! end
|
!! end
|
||||||
|
|
Loading…
Reference in a new issue