diff options
author | Arlo Breault <abreault@wikimedia.org> | 2023-04-27 14:18:05 -0400 |
---|---|---|
committer | Arlo Breault <abreault@wikimedia.org> | 2023-05-01 12:27:31 -0400 |
commit | aeeaa4783d030b727bca12ed5759595f7cbf08d5 (patch) | |
tree | b28f10c36ceca1402430a7469d894426c33d6237 /tests/parser/media.txt | |
parent | e0035bbf5a14f6ba733df387875d35ab897860de (diff) | |
download | mediawikicore-aeeaa4783d030b727bca12ed5759595f7cbf08d5.tar.gz mediawikicore-aeeaa4783d030b727bca12ed5759595f7cbf08d5.zip |
Pass whether current rev of file exists to Linker::makeBrokenImageLinkObj
A $time parameter was added to Linker::makeBrokenImageLinkObj in 2d22c85
to avoid checking if a file exists if we were fetching the current
revision. The assumption being that the method would only be called if
the current revision doesn't exist. A new parameter is added to
indicate that the current revision exist so that a known link can be
created.
Bug: T329214
Change-Id: I9ae5b18c422ab7d1b2b3b599a1994c319fe37239
Diffstat (limited to 'tests/parser/media.txt')
-rw-r--r-- | tests/parser/media.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parser/media.txt b/tests/parser/media.txt index f462e913b5f9..3f309a9a54d6 100644 --- a/tests/parser/media.txt +++ b/tests/parser/media.txt @@ -241,7 +241,7 @@ File:Bad.jpg !! html/php <ul class="gallery mw-gallery-traditional"> <li class="gallerybox" style="width: 155px"> - <div class="thumb" style="height: 150px;"><span typeof="mw:Error mw:File"><a href="/index.php?title=Special:Upload&wpDestFile=Bad.jpg" class="new" title="File:Bad.jpg"><span class="mw-file-element mw-broken-media" data-width="120" data-height="120">File:Bad.jpg</span></a></span></div> + <div class="thumb" style="height: 150px;"><span typeof="mw:Error mw:File"><a href="/wiki/File:Bad.jpg" title="File:Bad.jpg"><span class="mw-file-element mw-broken-media" data-width="120" data-height="120">File:Bad.jpg</span></a></span></div> <div class="gallerytext"> </div> </li> @@ -2400,7 +2400,7 @@ wgParserEnableLegacyMediaDOM=false !! wikitext [[Image:foobar.jpg|thumbnail= ]] !! html/php -<figure typeof="mw:Error mw:File/Thumb"><a href="/index.php?title=Special:Upload&wpDestFile=Foobar.jpg" class="new" title="File:Foobar.jpg"><span class="mw-file-element mw-broken-media" data-width="180">File:Foobar.jpg</span></a><figcaption></figcaption></figure> +<figure typeof="mw:Error mw:File/Thumb"><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg"><span class="mw-file-element mw-broken-media" data-width="180">Error creating thumbnail: </span></a><figcaption></figcaption></figure> !! html/parsoid <figure typeof="mw:Error mw:File/Thumb" data-parsoid='{"optList":[{"ck":"manualthumb","ak":"thumbnail= "}]}' data-mw='{"attribs":[["manualthumb",{"txt":""}]],"errors":[{"key":"apierror-invalidtitle","message":"Invalid thumbnail title.","params":{"name":""}}]}'><a href="./Special:FilePath/Foobar.jpg"><span class="mw-broken-media" resource="./File:Foobar.jpg" data-parsoid='{"a":{"resource":"./File:Foobar.jpg"},"sa":{"resource":"Image:foobar.jpg"}}'>File:Foobar.jpg</span></a><figcaption></figcaption></figure> !! end |