Arlolra has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/401522 )
Change subject: Sync up with Parsoid parserTests.txt ...................................................................... Sync up with Parsoid parserTests.txt This now aligns with Parsoid commit 28d7734fa2385a8fa599e3ce1bfbcd8582c05bc4 Change-Id: Iee7f3f0022c9c770c1a02b401699df0915ea7c86 --- M tests/parser/parserTests.txt 1 file changed, 35 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/22/401522/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 840c74d..aa03c0e 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -12633,6 +12633,19 @@ <p><span typeof="mw:LanguageVariant" data-mw-variant='{"disabled":{"t":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid='{\"pi\":[[{\"k\":\"1\"}]],\"dsr\":[2,14,null,null]}' data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"echo\",\"href\":\"./Template:Echo\"},\"params\":{\"1\":{\"wt\":\"foo\"}},\"i\":0}}]}'>foo</span>bar"}}'></span></p> !! end +!! test +Preprocessor precedence 17: template w/o target shouldn't prevent closing +!! options +parsoid=wt2html +!! wikitext +{{echo|hi {{}}}} +!! html/php +<p>hi {{}} +</p> +!! html/parsoid +<p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"hi {{}}"}},"i":0}}]}'>hi {{}}</p> +!! end + ### ### Token Stream Patcher tests ### @@ -30608,3 +30621,25 @@ </section><section data-mw-section-id="2"><h1 id="2"> 2 </h1> <p>b</p></section> !! end + +!! test +Pseudo-sections emitted by templates should have id -2 +!! options +parsoid={ + "wrapSections": true +} +!! wikitext +foo +{{echo|<div> +== a == +== b == +</div> +}} +!! html/parsoid +<section data-mw-section-id="-1"><p>foo</p> +</section><section data-mw-section-id="-2"><div about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"stx":"html","pi":[[{"k":"1"}]]}' data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>\n== a ==\n== b ==\n</div>\n"}},"i":0}}]}'> +<section data-mw-section-id="-1"><h2 id="a"> a </h2> +</section><section data-mw-section-id="-1"><h2 id="b"> b </h2> +</section></div><span about="#mwt1"> +</span></section> +!! end -- To view, visit https://gerrit.wikimedia.org/r/401522 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iee7f3f0022c9c770c1a02b401699df0915ea7c86 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Arlolra <abrea...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits