mediawiki-extensions-Cite/tests
Thiemo Kreuz 6389459b1e Refactor newline logic for auto-generated <references> sections
This change does have two effects:

1. Instead of prepending a newline individually in every possible
code path, we do it one time at the end. But only if there is
something in the output. This does not change anything, as proven by
the unchanged parser tests.

2. I removed the newline between the <h2> and the generated
<references> element. Note that both these elements are created in
the same method, next to each other. So there is no way this can
influence other wikitext. Unfortunately this code path is executed
only when using the *preview* function, and impossible to be covered
by parser tests because of this. However, it's covered by unit tests.

This refactoring is motivated by, but not required for T148701.

Bug: T148701
Change-Id: I6691c70f8e3fa3f21e2d11035bed9cdc2dc87093
2020-05-06 19:07:40 +00:00
..
parser Add a newline in wikitext before autogenerated reflist 2020-05-06 20:51:25 +02:00
phpunit Refactor newline logic for auto-generated <references> sections 2020-05-06 19:07:40 +00:00
selenium Use waitForModuleState from Util class 2019-10-24 10:48:32 +02:00