wiki.techinc.nl/tests/phpunit/includes/parser
Brian Wolff 89be2c5820 Allow storing additional CSP sources in ParserOutput
This adds methods to ParserOutput ::addExtraCSPStyleSrc,
::addExtraCSPDefaultSrc, and ::addExtraCSPScriptSrc, to easily
allow parser tags/functions to add additional CSP sources if their
tag needs it. Previously such an extension would need to use
and OutputPage hook. This is modeled on how addModules() works.

The immediate use case is for Kartographer (T240960), although
its expected that lots of extensions might do something like this,
especially extensions used outside of Wikimedia.

Change-Id: I24e5f0b4edff58025a0c2a3e1a9aa3f62eb7db7b
2020-03-12 17:39:51 -07:00
..
CoreParserFunctionsTest.php Replace some oldskool @see with @inheritDoc 2019-11-08 18:00:27 +00:00
MagicVariableTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ParserMethodsTest.php Fixes for PHPUnit 8 compat in DB suite 2019-12-15 00:27:54 +00:00
ParserOptionsTest.php Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
ParserOutputTest.php Allow storing additional CSP sources in ParserOutput 2020-03-12 17:39:51 -07:00
ParserPreloadTest.php Remove Preprocessor_DOM, deprecated in 1.34 2020-01-25 11:22:45 -05:00
ParserTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
PreprocessorTest.php Remove Preprocessor_DOM, deprecated in 1.34 2020-01-25 11:22:45 -05:00
SanitizerTest.php Make id attributes not include ascii whitespace per spec 2020-02-25 05:27:33 -08:00
StripStateTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
TagHooksTest.php Hard deprecate Parser::setFunctionTagHook() 2020-01-28 16:20:40 -08:00