mediawiki-extensions-Cite/tests/parser
thiemowmde c02595bb97 Drop obscure error message about an unused group
The message was part of the original patch that introduced the group
feature in 2009, see https://phabricator.wikimedia.org/rECIT75004e33.
Notice how there was never a test scenario for this message. A test
was added in 2020 via I07738cc.

The message appears only in a rare edge-case when a group is entirely
unused in the text, and only when the group is not empty. The shortest
possible example is:

 <references group=g>
 <ref group=g name=a>a</ref>
 </references>

Just adding something unrelated like `<ref group=g>x</ref>` to the
text changes the error message. Now the group is "used". But this
notion is confusing to begin with. References can be part of a group,
and we can use references, but we can't use groups as if they are a
separate entity.

A better error message already exists.

Notice how this special error message doesn't appear anywhere in the
Parsoid code path. That was already using the other, more generic
error message.

Bug: T269531
Change-Id: I63f663d76e45e6c3d664f145d9a564ee00ff53cd
2024-03-04 13:04:36 +01:00
..
bookReferencing.txt Documenting state of subref reuse rollback 2024-01-09 18:05:05 +01:00
citeParserTests-knownFailures.json Add dummy html/parsoid sections for three failing tests 2024-01-26 23:56:41 -06:00
citeParserTests.txt Drop obscure error message about an unused group 2024-03-04 13:04:36 +01:00
citeSmokeTests.txt Give a different error from too_many_keys when 'follow' attribute conflicts 2023-12-15 15:23:53 +01:00
fragementModes.txt Skip URL encoding in id="…" attributes that aren't URLs 2023-12-12 13:56:37 +00:00
parserFunctionTests.txt Remove problematic spaces from a parser test case + Rename a test file 2023-03-01 08:54:11 -06:00
responsiveReferences.txt Add parser & unit test cases for different $wgFragmentMode's 2022-01-03 14:14:47 +01:00