GWicke has uploaded a new change for review.
https://gerrit.wikimedia.org/r/54595
Change subject: Add two table parser tests
......................................................................
Add two table parser tests
One tests paragraph wrapping inside of table cells, the other mixed wikitext /
html syntax tables in Parsoid only.
Change-Id: I1e07e868d7f329ac1fa5d33b7fa07c7e701f41ba
---
M tests/parser/parserTests.txt
1 file changed, 37 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/95/54595/1
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index e9218de..251bf23 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -3311,6 +3311,43 @@
!! end
+!! test
+Wikitext table with double-line table cell
+!! input
+{|
+|a
+b
+|}
+!! result
+<table>
+<tr>
+<td>a
+<p>b
+</p>
+</td></tr></table>
+
+!! end
+
+# The expected HTML structure in this test is debatable. The PHP parser does
+# not parse this kind of table at all. The main focus for Parsoid is on
+# round-tripping, so this output is ok for now. TODO: revisit!
+!! test
+Wikitext table with html-syntax row (Parsoid)
+!! options
+parsoid
+!! input
+{|
+|-
+<td>foo</td>
+|}
+!! result
+<table>
+<tbody>
+<tr>
+<td></td>
+<td>foo</td></tr></tbody></table>
+!! end
+
###
### Internal links
###
--
To view, visit https://gerrit.wikimedia.org/r/54595
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e07e868d7f329ac1fa5d33b7fa07c7e701f41ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits