To implement source maps, we want FileModule::getScript() to return an array with path information, but that would break subclasses of FileModule which concatenate to the return value of parent::getScript(). So allow scripts to be generated by a callback, eliminating the need for concatenation in subclasses. * Factor out most of the loop body of expandPackageFiles() into expandFileInfo(). Add 'name' to the return value. Ensure 'filePath' is always a FilePath object since we need that to safely return it to ResourceLoader later. Document the return value. * Make sure the base path is always set in FilePath objects returned by expandFileInfo(). * Factor out the loop body of the final stage of file info expansion into readFileInfo(). Retain filePath, do not unset it. * Assert that $fileInfo['content'] is definitely set. * Convert array_map() in getDefinitionSummary() to a loop. * Migrate LanguageDataModule. Bug: T47514 Change-Id: I97d61b5793159cea365740e0563f7b733e0f16de |
||
|---|---|---|
| .. | ||
| templates | ||
| ClientHtmlTest.php | ||
| ContextTest.php | ||
| DerivativeContextTest.php | ||
| FileModuleTest.php | ||
| ImageModuleTest.php | ||
| LessVarFileModuleTest.php | ||
| MessageBlobStoreTest.php | ||
| ModuleTest.php | ||
| OOUIImageModuleTest.php | ||
| ResourceLoaderTest.php | ||
| SkinModuleTest.php | ||
| StartUpModuleTest.php | ||
| UserOptionsModuleTest.php | ||
| WikiModuleTest.php | ||