wiki.techinc.nl/tests/phpunit/includes/resourceloader
Timo Tijhof 6d14529c69 resourceloader: Preserve new 'debug' param in getScriptURLsForDebug()
Follows-up Ieaf04e0c289646dd5 which changed internal references to
bool(true) for 'debug' to the integer DEBUG_ constants, and introduced
a new debug=2 parameter.

In the refactor, I missed the setDebug() calls for
DerivativeResourceLoaderContext, which were still passing a boolean,
but more importantly were effectively passing debug=1 even if the
pageview carried debug=2. This isn't a problem yet in production since
debug=2 is currently identical in behaviour to debug=1.

The impact of this issue is mainly noticed through secondary CSS
requests. The URLs for primary stylesheets, and JS modules was already
forwarding the current "debug" version.

Test Plan:
* Open Main_Page?action=edit&debug=2
* Before this patch, e.g. on mediawiki.org today, secondary
  stylesheet requests (part of a JS module) have debug=1.
  For example "modules=jquery.makeCollapsible.styles&only=styles".
* After this, everything has debug=2 when the page view has debug=2.

Bug: T85805
Change-Id: Ia8fba4e30397bc5890033f13417b6739b0f83c38
2021-09-25 20:06:42 +00:00
..
templates
DerivativeResourceLoaderContextTest.php tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
MessageBlobStoreTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ResourceLoaderClientHtmlTest.php Merge "resourceloader: Add internal handling for debug=2" 2021-02-16 19:54:10 +00:00
ResourceLoaderContextTest.php resourceloader: Add internal handling for debug=2 2021-01-29 01:09:35 +00:00
ResourceLoaderFileModuleTest.php resourceloader: Preserve new 'debug' param in getScriptURLsForDebug() 2021-09-25 20:06:42 +00:00
ResourceLoaderImageModuleTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ResourceLoaderLessVarFileModuleTest.php resourceloader: Fail gracefully if a LESS message is not found 2021-01-07 15:41:02 -08:00
ResourceLoaderModuleTest.php resourceloader: Preserve new 'debug' param in getScriptURLsForDebug() 2021-09-25 20:06:42 +00:00
ResourceLoaderOOUIImageModuleTest.php Remove usages of Skin::getAllowedSkins. 2020-08-05 02:48:29 +01:00
ResourceLoaderSkinModuleTest.php resourceloader: Remove -moz- vendor prefix from SkinModule css 2021-09-14 00:22:00 +00:00
ResourceLoaderStartUpModuleTest.php resourceloader: Skip version hash calculation in debug mode 2021-09-15 18:13:09 -07:00
ResourceLoaderTest.php resourceloader: Skip version hash calculation in debug mode 2021-09-15 18:13:09 -07:00
ResourceLoaderWikiModuleTest.php LinkCache: soft deprecate addGoodLinkObj() 2021-09-10 16:00:02 +02:00