jenkins-bot has submitted this change and it was merged. Change subject: Sync up with Parsoid parserTests. ......................................................................
Sync up with Parsoid parserTests. This now aligns with Parsoid commit 36075c7fc242ad2fd7bba05661606722ebda49aa Change-Id: I5bbf1c0a1e9602983024ce30eb28a33648246b3c --- M tests/parser/parserTests.txt 1 file changed, 47 insertions(+), 1 deletion(-) Approvals: Subramanya Sastry: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index dd50607..bd67258 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -35,7 +35,7 @@ # # You can also set the following parser properties via test options: # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel, -# wgLinkHolderBatchSize, wgRawHtml +# wgLinkHolderBatchSize, wgRawHtml, wgInterwikiMagic # # For testing purposes, temporary articles can created: # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle @@ -8361,6 +8361,7 @@ <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/> !! end +## parsoid html2wt will lose the space variations !! test Interlanguage link with spacing !! options @@ -8391,6 +8392,7 @@ <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/> !! end +## parsoid html2wt will lose the space variations !! test Interlanguage link variations !! options @@ -8410,6 +8412,7 @@ <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Foo_bar" /> !! end +## parsoid html2wt will normalize the space to _ !! test Space and question mark encoding in interlanguage links (T95473) !! options @@ -8468,6 +8471,34 @@ !! html/parsoid <p>Blah blah blah</p> <link rel="mw:PageProp/Language" title="Multilingual" href="http://wikisource.org/wiki/Article"/> +!! end + +## PHP parser tests script needs an update +## Parsoid html2wt will normalize output to [[:zh:Chinese]] +!! test +Language links render as inline links if $wgInterwikiMagic=false +!! options +wgInterwikiMagic=false +parsoid=wt2html,wt2wt,html2html +!! wikitext +Blah blah blah +[[zh:Chinese]] +!! html/parsoid +<p>Blah blah blah <a rel="mw:ExtLink" href="http://zh.wikipedia.org/wiki/Chinese" title="zh:Chinese">zh:Chinese</a></p> +!! end + +## PHP parser tests script needs an update +## Parsoid html2wt will normalize output to [[:zh:Chinese]] +!! test +Language links render as inline links in the Talk namespace +!! options +title=Talk:Foo +parsoid=wt2html,wt2wt,html2html +!! wikitext +Blah blah blah +[[zh:Chinese]] +!! html/parsoid +<p>Blah blah blah <a rel="mw:ExtLink" href="http://zh.wikipedia.org/wiki/Chinese" title="zh:Chinese">zh:Chinese</a></p> !! end !! test @@ -27066,6 +27097,21 @@ !! end !! test +DOMDiff: Edits to content nested in elements with templated attributes should not be lost (T139388) +!! options +parsoid={ + "modes": ["selser"], + "changes": [ + [ "div:first-child", "text", "bar" ] + ] +} +!! wikitext +<div style="{{1x|color:red;}}%">foo</div> +!! wikitext/edited +<div style="{{1x|color:red;}}%">bar</div> +!! end + +!! test Empty LI (T49673) !! wikitext * a -- To view, visit https://gerrit.wikimedia.org/r/299698 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5bbf1c0a1e9602983024ce30eb28a33648246b3c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Arlolra <abrea...@wikimedia.org> Gerrit-Reviewer: Cscott <canan...@wikimedia.org> Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com> Gerrit-Reviewer: Subramanya Sastry <ssas...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits