jenkins-bot has submitted this change and it was merged.
Change subject: Consolidate tests spec'ing wikitext serialization norms
..
Consolidate tests spec'ing wikitext serialization norms
* Updates a test to catch the bug fixed in 1d7409cda185bc87.
Change-Id: I067f4ac056fe4cf44721f5acfe396a1102d08bb6
---
M tests/parserTests.txt
1 file changed, 50 insertions(+), 35 deletions(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
index dc63a94..f936161 100644
--- a/tests/parserTests.txt
+++ b/tests/parserTests.txt
@@ -23442,22 +23442,6 @@
!! end
!! test
-Lists: Add space after bullets
-!! options
-parsoid=html2wt
-!! html
-ul
-lifoo/li
-li bar/li
-lispan baz/span/li
-/ul
-!! wikitext
-* foo
-* bar
-* span baz/span
-!! end
-
-!! test
Lists: Dont insert newlines in a serialized list item.
!! options
parsoid=html2wt
@@ -23466,25 +23450,6 @@
!! wikitext
* abrb
* c
-!! end
-
-!! test
-Headings: Add space before/after == (Bug 51744)
-!! options
-parsoid=html2wt
-!! html
-h2foo/h2
-h2 bar/h2
-h2baz /h2
-h2span baz/span/h2
-!! wikitext
-== foo ==
-
-== bar ==
-
-== baz ==
-
-== span baz/span ==
!! end
!! test
@@ -23992,6 +23957,56 @@
[http://boo.org http://boohoo.org]
!! end
+#
+# Tests spec'ing wikitext serialization norms |
+#
+
+!! test
+Lists: Add space after bullets
+!! options
+parsoid=html2wt
+!! html
+ul
+lifoo/li
+li bar/li
+lispan baz/span/li
+/ul
+!! wikitext
+* foo
+* bar
+* span baz/span
+!! end
+
+!! test
+Headings: Add space before/after == (T53744)
+!! options
+parsoid=html2wt
+!! html
+h2foo/h2
+h2 bar/h2
+h2baz /h2
+h2span baz/span/h2
+
+!-- Even after hoisted content --
+h2 link href=Category:A2 rel=mw:PageProp/Category /ok/h2
+!! wikitext
+== foo ==
+
+== bar ==
+
+== baz ==
+
+== span baz/span ==
+
+!-- Even after hoisted content --
+ [[Category:A2]]
+== ok ==
+!! end
+
+# ---
+# End of tests spec'ing wikitext serialization norms |
+# ---
+
# -
# End of section for Parsoid-only html2wt tests for serialization
# of new content
--
To view, visit https://gerrit.wikimedia.org/r/201593
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I067f4ac056fe4cf44721f5acfe396a1102d08bb6
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra abrea...@wikimedia.org
Gerrit-Reviewer: Cscott canan...@wikimedia.org
Gerrit-Reviewer: Marcoil marc...@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