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
|
PageImages with one image
|
||||||
!! options
|
!! options
|
||||||
property=page_image_free
|
property=page_image_free
|
||||||
|
!! config
|
||||||
|
wgParserEnableLegacyMediaDOM=false
|
||||||
!! wikitext
|
!! wikitext
|
||||||
[[File:Foobar.jpg]]
|
[[File:Foobar.jpg]]
|
||||||
!! html
|
!! 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>
|
</p>
|
||||||
property[page_image_free]=Foobar.jpg
|
property[page_image_free]=Foobar.jpg
|
||||||
!! end
|
!! end
|
||||||
|
@ -16,12 +18,14 @@ property[page_image_free]=Foobar.jpg
|
||||||
PageImages with two images
|
PageImages with two images
|
||||||
!! options
|
!! options
|
||||||
property=page_image_free
|
property=page_image_free
|
||||||
|
!! config
|
||||||
|
wgParserEnableLegacyMediaDOM=false
|
||||||
!! wikitext
|
!! wikitext
|
||||||
[[File:Thumb.png]]
|
[[File:Thumb.png]]
|
||||||
[[File:Foobar.jpg]]
|
[[File:Foobar.jpg]]
|
||||||
!! html
|
!! 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>
|
<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>
|
||||||
<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>
|
<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
|
property[page_image_free]=Foobar.jpg
|
||||||
!! end
|
!! end
|
||||||
|
|
Loading…
Reference in a new issue