resourceloader: Support isKnownEmpty for general modules
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 18 Sep 2017 17:37:13 +0000 (18:37 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 18 Sep 2017 17:37:13 +0000 (18:37 +0100)
commit0b1a7d4c59c83958024bf6e201fd93db37f6229b
tree394b0fac4a3473d6162f5c85620d28f6a4f9b2dd
parent83020dbf41b66efb1eecdd3b09250425695ca93a
resourceloader: Support isKnownEmpty for general modules

It was already supported for only=scripts and only=styles, but
not yet for general modules loaded as 'combined'.

This is especially useful for general modules that are private/embedded,
as this allows us to skip the loader.implement() boilerplate.

Bug: T176159
Change-Id: I83e9f74dad75867c10ebd0a94b87c31e4adbb57f
includes/resourceloader/ResourceLoaderClientHtml.php
tests/phpunit/includes/resourceloader/ResourceLoaderClientHtmlTest.php