wiki.techinc.nl/tests/phpunit/includes/parser
C. Scott Ananian 439656e019 Generate TOC HTML on demand in ParserOutput::getText()
* Rather than computing TOC HTML in Parser and setting it in
  ParserOutput, compute it on demand based on section metadata.

  This will let Parsoid set section metadata in ParserOutput
  and have the TOC generated automatically.

* This required fixing some "bugs" in Linker's generateTOC
  which didn't properly close tags and relied on Tidy to fix
  up unclosed li and ul tags.

* This patch relies on converting section metadata objects to
  array objects, but Linker::generateTOC could be converted to
  use TOC data instead.

* Since TOC generation is now moved to getText(), this is done
  post-PC load and this eliminates the parser cache split on
  user language for TOC heading localization.

Bug: T293513
Change-Id: Ief1bba326d3612b40930440c872a61abadffab10
2023-01-25 16:42:16 -05:00
..
CacheTimeTest.php Migrate from setMwGlobals() to overrideConfigValue(s) 2022-08-02 10:14:10 +01:00
CoreParserFunctionsTest.php Reorg: Move RawMessage to under language/ 2022-12-16 11:30:19 +01:00
LinkHolderArrayIntegrationTest.php parser: Optimize regex patterns used in LinkHolderArray 2023-01-07 13:25:33 +00:00
MagicVariableTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-07-06 00:44:00 +02:00
MagicWordFactoryTest.php Reorg: Move MagicWord related files to under parser/ 2022-12-09 13:48:35 +01:00
PageBundleJsonTraitTest.php Introduce PageBundleJsonTrait for serialization 2022-05-23 17:54:48 +01:00
ParserCacheSerializationTestCases.php Use real section metadata in tests 2022-11-23 12:45:27 -05:00
ParserCacheTest.php JsonCodec: fix en/decoding of nested objects and stdClass objects 2023-01-12 14:12:32 -05:00
ParserMethodsTest.php Reorg: Move RawMessage to under language/ 2022-12-16 11:30:19 +01:00
ParserOptionsTest.php Track the reason for rendering. 2022-11-09 09:38:57 +00:00
ParserOutputTest.php Generate TOC HTML on demand in ParserOutput::getText() 2023-01-25 16:42:16 -05:00
ParserPreloadTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-07-06 00:44:00 +02:00
ParserTest.php Reorg: Move MagicWord related files to under parser/ 2022-12-09 13:48:35 +01:00
PreprocessorTest.php Auto-discover core parser test files 2022-10-13 10:41:15 -04:00
RevisionOutputCacheTest.php JsonCodec: fix en/decoding of nested objects and stdClass objects 2023-01-12 14:12:32 -05:00
SanitizerTest.php Migrate from setMwGlobals() to overrideConfigValue(s) 2022-08-02 10:14:10 +01:00
StripStateTest.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
TagHooksTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-07-06 00:44:00 +02:00
validateParserCacheSerializationTestData.php Hard-deprecate all public property access on CacheTime and ParserOutput. 2021-10-13 13:27:16 -04:00