ResourcesTest: Detect missing files in url(...) expressions
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 3 Sep 2015 21:30:36 +0000 (23:30 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 16 Sep 2015 00:27:23 +0000 (00:27 +0000)
commit8f5cd11d82fa5d58ab644b55b8f28e82879465a0
treecf8dcf3084fe7ec5a61476534b5e85f3c56ff6af
parent3a3c3e73e72f25e650480b7083b194d05d9e1bad
ResourcesTest: Detect missing files in url(...) expressions

The way this is implemented is really dirty... but it found us
a few pre-existing bugs already (T111518, T111519, T111771).
I think it might be worth it.

* CSSMin: Add new method getAllLocalFileReferences() which skips the
  file_exists() check.
* ResourceLoaderModule: Make use of it to track missing files too.
* ResourcesTest: Verify that the missing files are missing.

Change-Id: I5a3cdeb7d53485f161ccf8133e76850cdf5b4579
includes/libs/CSSMin.php
includes/resourceloader/ResourceLoaderFileModule.php
tests/phpunit/structure/ResourcesTest.php