resourceloader: Include lessVars in FileModule definition summary
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 27 Jul 2017 01:53:37 +0000 (18:53 -0700)
committerKrinkle <krinklemail@gmail.com>
Thu, 27 Jul 2017 03:02:09 +0000 (03:02 +0000)
commit3f10aa34e626bada433a68a1797c51163c320c24
tree95fa18e13d89a89455857bba3d91b5e72c3c02ce
parent768085387e57b48d9bae2e36da0aacf6117e53be
resourceloader: Include lessVars in FileModule definition summary

This already worked as expected for any module that uses the new
enableModuleContentVersion model, but for the majority of file modules
this is not yet the case for performance reasons. As such, make
sure lessVars are included in our manual tracking.

Include it conditionally to avoid changing the array for other modules,
which would needlessly invalidate their cache.

Bug: T171809
Change-Id: Ib250068e0ecfc29a09ca33c23bef901ee0482bf2
includes/resourceloader/ResourceLoaderFileModule.php
tests/common/TestsAutoLoader.php
tests/phpunit/ResourceLoaderTestCase.php
tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php