r38264 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38263‎ | r38264 | r38265 >
Date:23:33, 30 July 2008
Author:simetrical
Status:old
Tags:
Comment:
Add twelve new parser tests, of which four fail, to cover bug 6200. Brings failing tests back up to 15 for me.
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -6834,6 +6834,183 @@
68356835 <!-- ~~~~ -->
68366836 !! end
68376837
 6838+!! test
 6839+Paragraphs inside divs (no extra line breaks)
 6840+!! input
 6841+<div>Line one
 6842+
 6843+Line two</div>
 6844+!! result
 6845+<div>Line one
 6846+Line two</div>
 6847+
 6848+!! end
 6849+
 6850+!! test
 6851+Paragraphs inside divs (extra line break on open)
 6852+!! input
 6853+<div>
 6854+Line one
 6855+
 6856+Line two</div>
 6857+!! result
 6858+<div>
 6859+<p>Line one
 6860+</p>
 6861+Line two</div>
 6862+
 6863+!! end
 6864+
 6865+!! test
 6866+Paragraphs inside divs (extra line break on close)
 6867+!! input
 6868+<div>Line one
 6869+
 6870+Line two
 6871+</div>
 6872+!! result
 6873+<div>Line one
 6874+<p>Line two
 6875+</p>
 6876+</div>
 6877+
 6878+!! end
 6879+
 6880+!! test
 6881+Paragraphs inside divs (extra line break on open and close)
 6882+!! input
 6883+<div>
 6884+Line one
 6885+
 6886+Line two
 6887+</div>
 6888+!! result
 6889+<div>
 6890+<p>Line one
 6891+</p><p>Line two
 6892+</p>
 6893+</div>
 6894+
 6895+!! end
 6896+
 6897+# Bug 6200: <blockquote> should behave like <div> with respect to line breaks
 6898+!! test
 6899+Bug 6200: paragraphs inside blockquotes (no extra line breaks)
 6900+!! input
 6901+<blockquote>Line one
 6902+
 6903+Line two</blockquote>
 6904+!! result
 6905+<blockquote>Line one
 6906+Line two</blockquote>
 6907+
 6908+!! end
 6909+
 6910+!! test
 6911+Bug 6200: paragraphs inside blockquotes (extra line break on open)
 6912+!! input
 6913+<blockquote>
 6914+Line one
 6915+
 6916+Line two</blockquote>
 6917+!! result
 6918+<blockquote>
 6919+<p>Line one
 6920+</p>
 6921+Line two</blockquote>
 6922+
 6923+!! end
 6924+
 6925+!! test
 6926+Bug 6200: paragraphs inside blockquotes (extra line break on close)
 6927+!! input
 6928+<blockquote>Line one
 6929+
 6930+Line two
 6931+</blockquote>
 6932+!! result
 6933+<blockquote>Line one
 6934+<p>Line two
 6935+</p>
 6936+</blockquote>
 6937+
 6938+!! end
 6939+
 6940+!! test
 6941+Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
 6942+!! input
 6943+<blockquote>
 6944+Line one
 6945+
 6946+Line two
 6947+</blockquote>
 6948+!! result
 6949+<blockquote>
 6950+<p>Line one
 6951+</p><p>Line two
 6952+</p>
 6953+</blockquote>
 6954+
 6955+!! end
 6956+
 6957+!! test
 6958+Paragraphs inside blockquotes/divs (no extra line breaks)
 6959+!! input
 6960+<blockquote><div>Line one
 6961+
 6962+Line two</div></blockquote>
 6963+!! result
 6964+<blockquote><div>Line one
 6965+Line two</div></blockquote>
 6966+
 6967+!! end
 6968+
 6969+!! test
 6970+Paragraphs inside blockquotes/divs (extra line break on open)
 6971+!! input
 6972+<blockquote><div>
 6973+Line one
 6974+
 6975+Line two</div></blockquote>
 6976+!! result
 6977+<blockquote><div>
 6978+<p>Line one
 6979+</p>
 6980+Line two</div></blockquote>
 6981+
 6982+!! end
 6983+
 6984+!! test
 6985+Paragraphs inside blockquotes/divs (extra line break on close)
 6986+!! input
 6987+<blockquote><div>Line one
 6988+
 6989+Line two
 6990+</div></blockquote>
 6991+!! result
 6992+<blockquote><div>Line one
 6993+<p>Line two
 6994+</p>
 6995+</div></blockquote>
 6996+
 6997+!! end
 6998+
 6999+!! test
 7000+Paragraphs inside blockquotes/divs (extra line break on open and close)
 7001+!! input
 7002+<blockquote><div>
 7003+Line one
 7004+
 7005+Line two
 7006+</div></blockquote>
 7007+!! result
 7008+<blockquote><div>
 7009+<p>Line one
 7010+</p><p>Line two
 7011+</p>
 7012+</div></blockquote>
 7013+
 7014+!! end
68387015 #
68397016 #
68407017 #

Follow-up revisions

RevisionCommit summaryAuthorDate
r103933Add test case described by Vitaliy Filippov in bug 6200.gwicke18:14, 22 November 2011

Status & tagging log