mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-12-18 02:51:04 +00:00
Add explicit wgParserEnableLegacyMediaDOM config to pageImagesParserTests.txt
In preparation for changing the default value. Bug: T314318 Change-Id: Ie1ae17aec283b41dfc086371b4627b665153f086
This commit is contained in:
parent
199f0a90ca
commit
0ec66379d1
|
@ -4,10 +4,12 @@
|
|||
PageImages with one image
|
||||
!! options
|
||||
property=page_image_free
|
||||
!! config
|
||||
wgParserEnableLegacyMediaDOM=false
|
||||
!! wikitext
|
||||
[[File:Foobar.jpg]]
|
||||
!! html
|
||||
<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><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>
|
||||
property[page_image_free]=Foobar.jpg
|
||||
!! end
|
||||
|
@ -16,12 +18,14 @@ property[page_image_free]=Foobar.jpg
|
|||
PageImages with two images
|
||||
!! options
|
||||
property=page_image_free
|
||||
!! config
|
||||
wgParserEnableLegacyMediaDOM=false
|
||||
!! wikitext
|
||||
[[File:Thumb.png]]
|
||||
[[File:Foobar.jpg]]
|
||||
!! html
|
||||
<p><a href="/wiki/File:Thumb.png" class="image"><img alt="Thumb.png" src="http://example.com/images/e/ea/Thumb.png" decoding="async" width="135" height="135" /></a>
|
||||
<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><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>
|
||||
</p>
|
||||
property[page_image_free]=Foobar.jpg
|
||||
!! end
|
||||
|
|
Loading…
Reference in a new issue