Arlolra has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/391570 )
Change subject: Sync parserTests with core
......................................................................
Sync parserTests with core
Change-Id: I32928a0a78f2715f43711f9c12a2b7a0ff55232f
---
M tests/parserTests.json
M tests/parserTests.txt
2 files changed, 18 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid
refs/changes/70/391570/1
diff --git a/tests/parserTests.json b/tests/parserTests.json
index 302e56c..52f750d 100644
--- a/tests/parserTests.json
+++ b/tests/parserTests.json
@@ -2,8 +2,8 @@
"parserTests.txt": {
"repo": "/wikimedia/mediawiki/",
"path": "tests/parser/parserTests.txt",
- "expectedSHA1": "e25c2ac3dfd7e954c4dfc6e42b0ec5afacd8205d",
- "latestCommit": "1b13888ed6bd09731f10045650714a3392bb55df"
+ "expectedSHA1": "9ebf253ac9685ced9ef827c574ca23da8e1ddc47",
+ "latestCommit": "673d788b0f03b62ca3a466bf1ac6832fed6f8038"
},
"citeParserTests.txt": {
"repo": "/wikimedia/mediawiki-extensions-Cite/",
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
index e203702..a505cde 100644
--- a/tests/parserTests.txt
+++ b/tests/parserTests.txt
@@ -15176,9 +15176,9 @@
!! options
parsoid=wt2html,wt2wt,html2html
!! wikitext
-[[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
+[[File:Foobar.svg|thumb|caption|lang=invalid:language:code]]
!! html/php
-<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a
href="/wiki/File:Foobar.svg" class="image"><img alt=""
src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png"
width="180" height="135" class="thumbimage"
srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png
1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x"
/></a> <div class="thumbcaption"><div class="magnify"><a
href="/wiki/File:Foobar.svg" class="internal"
title="Enlarge"></a></div>lang=invalid.language.code</div></div></div>
+<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a
href="/wiki/File:Foobar.svg" class="image"><img alt=""
src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png"
width="180" height="135" class="thumbimage"
srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png
1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x"
/></a> <div class="thumbcaption"><div class="magnify"><a
href="/wiki/File:Foobar.svg" class="internal"
title="Enlarge"></a></div>lang=invalid:language:code</div></div></div>
!! html/parsoid
<figure class="mw-default-size" typeof="mw:Image/Thumb"><a
href="./File:Foobar.svg"><img resource="./File:Foobar.svg"
src="//example.com/images/f/ff/Foobar.svg" data-file-width="240"
data-file-height="180" data-file-type="drawing" height="165"
width="220"/></a><figcaption>lang=invalid.language.code</figcaption></figure>
@@ -18542,6 +18542,20 @@
!! end
!! test
+Language converter glossary rules inside attributes (T119158)
+!! options
+language=sr variant=sr-el
+!! wikitext
+-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}-
+
+[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]]
+!! html
+<p>
+</p><p><a
href="/wiki/%D0%94%D0%B0%D1%82%D0%BE%D1%82%D0%B5%D0%BA%D0%B0:Foobar.jpg"
class="image"><img alt="" onload="alert(1)" data-foo=""
src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
+</p>
+!! end
+
+!! test
Self closed html pairs (T7487)
!! wikitext
<center><font id="bug" />Centered text</center>
--
To view, visit https://gerrit.wikimedia.org/r/391570
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I32928a0a78f2715f43711f9c12a2b7a0ff55232f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits