jenkins-bot has submitted this change and it was merged.

Change subject: Add more tests for paragraphs and headings with extra spacing
......................................................................


Add more tests for paragraphs and headings with extra spacing

Change-Id: Ic39fc0972bc25f0377720f82b642007ea0a208a0
---
M tests/parser/parserTests.txt
1 file changed, 53 insertions(+), 0 deletions(-)

Approvals:
  Subramanya Sastry: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index f90b279..a9ceafa 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -304,6 +304,59 @@
 !! end
 
 !! test
+Extra newlines: More paragraphs with indented comment
+!! input
+a
+
+   <!--boo-->
+
+b
+!!result
+<p>a
+</p><p><br />
+b
+</p>
+!!end
+
+!! test
+Extra newlines followed by heading
+!! input
+a
+
+
+
+=b=
+[[a]]
+
+
+=b=
+!! result
+<p>a
+</p><p><br />
+</p>
+<h1><span class="mw-headline" id="b">b</span><span class="mw-editsection">[<a 
href="/index.php?title=Parser_test&amp;action=edit&amp;section=1" title="Edit 
section: b">edit</a>]</span></h1>
+<p><a href="/index.php?title=A&amp;action=edit&amp;redlink=1" class="new" 
title="A (page does not exist)">a</a>
+</p><p><br />
+</p>
+<h1><span class="mw-headline" id="b_2">b</span><span 
class="mw-editsection">[<a 
href="/index.php?title=Parser_test&amp;action=edit&amp;section=2" title="Edit 
section: b">edit</a>]</span></h1>
+
+!! end
+
+!! test
+Extra newlines between heading and content are swallowed
+!! input
+=b=
+
+
+
+[[a]]
+!! result
+<h1><span class="mw-headline" id="b">b</span><span class="mw-editsection">[<a 
href="/index.php?title=Parser_test&amp;action=edit&amp;section=1" title="Edit 
section: b">edit</a>]</span></h1>
+<p><a href="/index.php?title=A&amp;action=edit&amp;redlink=1" class="new" 
title="A (page does not exist)">a</a>
+</p>
+!! end
+
+!! test
 Parsing an URL
 !! input
 http://fr.wikipedia.org/wiki/🍺

-- 
To view, visit https://gerrit.wikimedia.org/r/55273
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic39fc0972bc25f0377720f82b642007ea0a208a0
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: GWicke <gwi...@wikimedia.org>
Gerrit-Reviewer: GWicke <gwi...@wikimedia.org>
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

Reply via email to