wiki.techinc.nl/tests
Timo Tijhof c0c221bfe4 resourceloader: Refactor empty value trimming for mw.loader.register
We already did this, but it was rather convoluted with lots of
if/elseif sequences checking all the possible values.

Remove this logic from ResourceLoaderStartUpModule. Simplying it
simply create the array and pass it to ResourceLoader::makeLoaderRegisterScript.

In makeLoaderRegisterScript, we apply a filter to the array(s) that
trim empty values.

While at it:
* As with other registration properties' default values (like for dependencies,
  group, and skip) also use 'null' for the default value of 'source'.
  The mediawiki.js client was already compatible with this, and the server omitted
  it if it was the last value in the list. But in all other cases it explicitly
  outputs "local". Use null instead of simplicity sake. This also gains us a
  few characters in the output, and a relatively larger win after gzip since
  there's lots more re-using of "null".
* Remove stray casting of $version to int. This only happened in case of
  registering a single module (which don't do anywhere), and is redundant.

Change-Id: I1f321e7b8bd3b5cffc550b51169957a3da9b971d
2014-12-09 00:47:14 +00:00
..
browser Prepare repository for running RuboCop after every push to Gerrit 2014-10-24 13:11:12 +02:00
frontend build: Upgrade grunt-jscs and remove legacy jshint camelcase/nomen 2014-11-30 19:02:22 +00:00
parser Consistently handle trailing slashes in subpage links. 2014-11-14 17:09:00 -05:00
phpunit resourceloader: Refactor empty value trimming for mw.loader.register 2014-12-09 00:47:14 +00:00
qunit Merge "mediawiki.Uri: Implement support for a mutable defaultUri" 2014-12-05 13:47:22 +00:00
.gitignore browser acceptance tests 2014-06-23 08:03:06 -07:00
.htaccess
parserTests.php $wgTitle is not needed for running parser tests 2014-09-24 09:56:43 -07:00
testHelpers.inc Fix fatal error in delayed parser tests 2014-10-07 18:31:42 -04:00
TestsAutoLoader.php Do not list Test classes in the TestsAutoLoader.php 2014-12-08 21:07:31 +01:00