mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-23 22:03:31 +00:00
Sync up ImageMap repo with Parsoid
This now aligns with Parsoid commit 15cf6010f1342a67282d0e6ace4b1ef1eb2bbc47 Change-Id: Id096a272733cc2452d41a7f4b8cb230b8cfc6f62
This commit is contained in:
parent
6212138174
commit
a4d5daa43f
|
@ -268,3 +268,18 @@ File:Foobar.jpg|thumb|a<br />b
|
|||
!! html/parsoid
|
||||
<figure class="mw-default-size noresize" typeof="mw:File/Thumb mw:Extension/imagemap" data-mw='{"name":"imagemap","attrs":{},"body":{"extsrc":"\nFile:Foobar.jpg|thumb|a<br />b\n"}}'><span><img resource="./File:Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" decoding="async" data-file-width="1941" data-file-height="220" data-file-type="bitmap" height="20" width="180" 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"/></span><figcaption>a<br/>b</figcaption></figure>
|
||||
!! end
|
||||
|
||||
## In contrast with galleries
|
||||
!! test
|
||||
Imagemap without file namespace
|
||||
!! config
|
||||
wgParserEnableLegacyMediaDOM=false
|
||||
!! wikitext
|
||||
<imagemap>
|
||||
Foobar.jpg
|
||||
</imagemap>
|
||||
!! html/php
|
||||
<p class="error">Error: Must specify an image in the first line.</p>
|
||||
!! html/parsoid
|
||||
<p><span typeof="mw:Extension/imagemap mw:Error" about="#mwt2" data-mw='{"name":"imagemap","attrs":{},"body":{"extsrc":"\nFoobar.jpg\n"},"errors":[{"key":"imagemap_no_image"}]}' data-mw-i18n='{"/":{"lang":"x-user","key":"imagemap_no_image","params":null}}'>Error: imagemap_no_image</span></p>
|
||||
!! end
|
||||
|
|
Loading…
Reference in a new issue