jenkins-bot has submitted this change and it was merged. Change subject: Add parser tests for block and inline behaviour ......................................................................
Add parser tests for block and inline behaviour Change-Id: I0af26e8b86f2f9060bd88db6d36449d983978f09 --- M tests/parserTests.txt 1 file changed, 30 insertions(+), 0 deletions(-) Approvals: GOIII: Looks good to me, but someone else must approve Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/parserTests.txt b/tests/parserTests.txt index 9d90ecb..3ca5178 100644 --- a/tests/parserTests.txt +++ b/tests/parserTests.txt @@ -37,3 +37,33 @@ %253cscript%253ealert(document.cookie)%253c/script%253e</pre></div> !! end + +!! test +Default behaviour (inner is pre) +!!input +<source lang="javascript"> +var a; +</source> +!! result +<div class="mw-highlight"><pre><span class="kd">var</span> <span class="nx">a</span><span class="p">;</span> +</pre></div> + +!! end + +!! test +Inline attribute (inline code) +!!input +Text <source lang="javascript" inline>var a;</source>. +!! result +<p>Text <code class="mw-highlight"><span class="kd">var</span> <span class="nx">a</span><span class="p">;</span></code>. +</p> +!! end + +!! test +Enclose none (inline code) +!!input +Text <source lang="javascript" enclose="none">var a;</source>. +!! result +<p>Text <code class="mw-highlight"><span class="kd">var</span> <span class="nx">a</span><span class="p">;</span></code>. +</p> +!! end -- To view, visit https://gerrit.wikimedia.org/r/220700 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0af26e8b86f2f9060bd88db6d36449d983978f09 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/SyntaxHighlight_GeSHi Gerrit-Branch: master Gerrit-Owner: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: GOIII <george.orwell....@outlook.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits