mediawiki-extensions-Cite/tests/parser
Thiemo Kreuz 1bd66081f7 Fix inconsistent error reporting for invisible content
This makes one of the last remaining edge-cases about non-empty, but
non-visible content (a <ref> that only contains whitespace) behave
identical to all other places. We already reported it as being empty
everywhere else, except inside of <references>.

Note that the test cases look like they are reporting the same errors
twice. But this is not the case:

The first set of errors is about <ref name="…"> inside of <references>
not having visible content. This should always be reported, even if the
<ref> got content from somewhere else on the page.

The second set of errors is when a <ref name="…"> *never* got any
content.

This patch will slightly increase the numbers of errors reported.

Change-Id: I4a156aa9e466f735d92fe0ba5cc0678ec8bbdd50
2019-12-17 13:37:01 +01:00
..
bookReferencing.txt Add parser tests for reused extended <ref> before defined 2019-12-11 16:30:17 +01:00
citeParserTests.txt Fix inconsistent error reporting for invisible content 2019-12-17 13:37:01 +01:00
citeSmokeTests.txt Integration parser test for ParserFunctions 2019-12-11 08:58:58 +01:00