aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php
Commit message (Collapse)AuthorAgeFilesLines
...
* Add @group Database tags to tests that need itaude2015-04-011-0/+1
| | | | | | | | | | These tests all involve database access in some way, and thus need @group Database tags. These failed when setting a bogus database password and then running the tests. Change-Id: I7f113a79ac44d09d88ec607f76b8ec22bc1ebcf1
* resourceloader: Add template compiler for Mustache JSjdlrobson2015-03-231-0/+47
| | | | | | | Compatible library for PHP backend added by I281acc49c1. This adds the frontend compiler. Change-Id: I2190276a629ca882f3f5535e4e73635d2494e944
* resourceloader: Add @covers and minor clean up of test suitesTimo Tijhof2015-03-231-41/+87
| | | | | | | | | | | | * Move testMixedCssAnnotations to ResourceLoaderFileModuleTest. * Re-order data providers before test methods. * Add relevant @covers annotations in resourceloader/ tests. * Make test helper function private. * Add a few @covers for methods called from OutputPage::makeResourceLoaderLink (only one level deep, we should have separate unit tests for the more internal helpers). Change-Id: I2cc1757126214ed28059d4566ca813a86bcd95a7
* Don't create Language objects during ResourceLoader testsKunal Mehta2014-12-181-2/+1
| | | | | | | Mock calls to ResourceLoaderContext::getDirection(), which creates Language objects to get the directionality of a language. Change-Id: Ibe6da3013e658aa7cf596c1da2f8ca1314b7cdd3
* resourceloader: Add support for delivering templatesjdlrobson2014-10-291-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | A base ResourceLoaderModule::getTemplates() exists for subclasses to override. An implementation is provided for ResourceLoaderFileModule. For file modules, templates can be specified in the following manner: 'example' => array( 'templates' => array( 'bar' => 'templates/foo.html', ), 'scripts' => 'example.js', ), The delivery system is template language agnostic, and currently only supports "compiling" plain HTML templates. This also adds template support to the following modules as a POC: * mediawiki.feedback * mediawiki.action.view.postEdit * mediawiki.special.upload Works with $wgResourceLoaderStorageEnabled Change-Id: Ia0c5c8ec960aa6dff12c9626cee41ae9a3286b76
* Move tests into separate ResourceLoaderFileModuleTestKunal Mehta2014-10-221-0/+61
| | | Change-Id: I2504867850b7e6bda2afb8c4fedbe6b8819bc15b
* Revert "Add RL template module with HTML markup language"Legoktm2014-10-171-96/+0
| | | | | | | | | Not ready for merging, and Roan says that the +2 was most likely accidental and meant to be a -1. This reverts commit d146934f94ba7028fb0ad0a180786bc5856990d6. Change-Id: I3926c9ae9e3c8026fceb3aeedd3b1f1d9b91667b
* Add RL template module with HTML markup languagejdlrobson2014-10-171-0/+96
Preparation work for templating in core. RL should allow us to ship HTML / template markup from server to client. Use in Special:Upload and mediawiki.feedback as a proof of concept. Separation of concerns etc... See Also: Ia63d6b6868f23a773e4a41daa0036d4bf2cd6724 Change-Id: I6ff38c12897e3164969a1090449e626001926c3b