wiki.techinc.nl/tests/phpunit/includes/api
Bartosz Dziewoński f0c7fa9234 Move section edit links outside headings (new heading HTML)
Legacy parser can now output headings using a more accessible markup,
which is also identical to the markup used by the Parsoid parser.

Changes to client-side JS and CSS necessary to support the new markup
have already been merged in earlier commits.

includes/skins/Skin.php
includes/ServiceWiring.php
* Define a new skin option, 'supportsMwHeading', which can be used
  to toggle the new markup per-skin.
* Update the built-in fallback skin to enable it. This affects the
  output in parser tests.

docs/config-schema.yaml
includes/config-schema.php
includes/config-vars.php
includes/MainConfigNames.php
includes/MainConfigSchema.php
* Add a new configuration setting, 'ParserEnableLegacyHeadingDOM',
  which can be used to toggle the new markup per-site.

includes/OutputTransform/Stages/HandleSectionLinks.php
* Output new heading HTML for skins that enabled the option.

tests/*
* Duplicate parser tests that cover heading generation to cover both
  new and old markup. Update other parser tests to use new markup.
* Add some unit and integration tests for the behavior of the skin
  option and some parser tests for edge cases of the new markup.

Bug: T13555
Change-Id: I1180169a8e83af834c2984ba16089e6277f2a8dd
2024-05-06 12:25:33 -04:00
..
format tests: Namespace api tests 2024-02-18 15:47:04 +00:00
query phpunit: Fix tests relying on implicit wgScript/wgArticlePath 2024-05-05 00:00:01 +00:00
Validator tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiAcquireTempUserNameTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiBaseTest.php StatusValue: Deprecate combining MessageSpecifier and parameters array 2024-05-03 17:04:27 +02:00
ApiBlockInfoTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiBlockTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiChangeContentModelTest.php Improve rate limit tests 2024-03-12 14:00:07 +11:00
ApiCheckTokenTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiClearHasMsgTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiComparePagesTest.php tests: Migrate to IDatabase::newUpdateQueryBuilder 2024-04-14 18:48:21 +00:00
ApiContinuationManagerTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCreateTempUserTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCSPReportTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDisabledTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiEditPageTest.php Remove IDBAccessObject from being implemented in many classes 2024-02-19 10:50:02 +01:00
ApiEntryPointTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiErrorFormatterTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiFeedRecentChangesTest.php Update help text for 'hideanons' in ApiFeedRecentChanges API 2024-02-22 17:20:28 +00:00
ApiLoginTest.php tests: Migrate to IDatabase::newInsertQueryBuilder 2024-04-14 21:56:07 +02:00
ApiLogoutTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMainTest.php tests: Use IDatabase for mocking instead of DBConnRef 2024-05-02 22:11:12 +00:00
ApiMessageTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMoveTest.php Improve rate limit tests 2024-03-12 14:00:07 +11:00
ApiOpenSearchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiOptionsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiPageSetTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiParseTest.php Move section edit links outside headings (new heading HTML) 2024-05-06 12:25:33 -04:00
ApiProtectTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiPurgeTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiResultTest.php ApiResult: Make array ordering consistent across PHP versions 2024-04-05 11:22:15 +02:00
ApiRevisionDeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiRollbackTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiSetNotificationTimestampIntegrationTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiStashEditTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiTestCase.php Formally deprecate code marked with @deprecated 2024-05-03 18:25:03 +03:00
ApiTestContext.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUnblockTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUndeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTestCase.php api: Reduce use of WebRequest in action=upload 2024-03-29 21:04:59 +00:00
ApiUsageExceptionTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUserrightsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiWatchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
generateRandomImages.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApi.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApiQueryBase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
RandomImageGenerator.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00