Merge "Update parsertests with new media classes"

This commit is contained in:
jenkins-bot 2023-04-26 17:44:00 +00:00 committed by Gerrit Code Review
commit 5acf1b54b8

View file

@ -195,8 +195,6 @@ Templating<ref>Text<!--comment--></ref>
!! test !! test
<ref> in an ignored caption (T235656) <ref> in an ignored caption (T235656)
!! options
disabled
!! config !! config
wgParserEnableLegacyMediaDOM=false wgParserEnableLegacyMediaDOM=false
!! wikitext !! wikitext
@ -204,7 +202,7 @@ wgParserEnableLegacyMediaDOM=false
<references /> <references />
!! html/php !! html/php
<p><span class="mw-default-size" typeof="mw:File/Frameless"><a href="/wiki/File:Foobar.jpg" class="mw-file-description" title="ignored caption with a ref[1]"><img alt="ignored caption with a ref[1]" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" decoding="async" width="180" height="20" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a></span> <p><span class="mw-default-size" typeof="mw:File/Frameless"><a href="/wiki/File:Foobar.jpg" class="mw-file-description" title="ignored caption with a ref[1]"><img alt="ignored caption with a ref[1]" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" decoding="async" width="180" height="20" class="mw-file-element" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a></span>
</p> </p>
<div class="mw-references-wrap"><ol class="references"> <div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">boo</span> <li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">boo</span>
@ -269,7 +267,6 @@ language=sr variant=sr-ec
<references> after <gallery> (bug 6164) <references> after <gallery> (bug 6164)
!! options !! options
parsoid=wt2html,html2html parsoid=wt2html,html2html
disabled
!! config !! config
wgParserEnableLegacyMediaDOM=false wgParserEnableLegacyMediaDOM=false
!! wikitext !! wikitext
@ -283,7 +280,7 @@ wgParserEnableLegacyMediaDOM=false
</p> </p>
<ul class="gallery mw-gallery-traditional"> <ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 155px"> <li class="gallerybox" style="width: 155px">
<div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" decoding="async" width="120" height="14" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></span></div> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" decoding="async" width="120" height="14" class="mw-file-element" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></span></div>
<div class="gallerytext"> <div class="gallerytext">
</div> </div>
</li> </li>