/* Modules registered when $wgEnableJavaScriptTest is true */
-return array(
+return [
/* Utilities */
- 'test.sinonjs' => array(
- 'scripts' => array(
+ 'test.sinonjs' => [
+ 'scripts' => [
'resources/lib/sinonjs/sinon-1.15.4.js',
// We want tests to work in IE, but can't include this as it
// will break the placeholders in Sinon because the hack it uses
// Including it results (among other things) in sandboxed timers
// being broken due to Date inheritance being undefined.
// 'resources/lib/sinonjs/sinon-ie-1.15.4.js',
- ),
- 'targets' => array( 'desktop', 'mobile' ),
- ),
+ ],
+ 'targets' => [ 'desktop', 'mobile' ],
+ ],
- 'test.mediawiki.qunit.testrunner' => array(
- 'scripts' => array(
+ 'test.mediawiki.qunit.testrunner' => [
+ 'scripts' => [
'tests/qunit/data/testrunner.js',
- ),
- 'dependencies' => array(
+ ],
+ 'dependencies' => [
// Test runner configures QUnit but can't have it as dependency,
// see SpecialJavaScriptTest::viewQUnit.
'jquery.getAttrs',
'mediawiki.page.startup',
'test.sinonjs',
'dom-level2-shim',
- ),
+ ],
'position' => 'top',
- 'targets' => array( 'desktop', 'mobile' ),
- ),
+ 'targets' => [ 'desktop', 'mobile' ],
+ ],
/*
Test suites for MediaWiki core modules
These must have a dependency on test.mediawiki.qunit.testrunner!
*/
- 'test.mediawiki.qunit.suites' => array(
- 'scripts' => array(
+ 'test.mediawiki.qunit.suites' => [
+ 'scripts' => [
'tests/qunit/suites/resources/startup.test.js',
'tests/qunit/suites/resources/jquery/jquery.accessKeyLabel.test.js',
'tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js',
'tests/qunit/suites/resources/mediawiki/mediawiki.cldr.test.js',
'tests/qunit/suites/resources/mediawiki/mediawiki.cookie.test.js',
'tests/qunit/suites/resources/mediawiki/mediawiki.experiments.test.js',
- ),
- 'dependencies' => array(
+ ],
+ 'dependencies' => [
'jquery.accessKeyLabel',
'jquery.autoEllipsis',
'jquery.byteLength',
'mediawiki.cookie',
'mediawiki.experiments',
'test.mediawiki.qunit.testrunner',
- ),
- )
-);
+ ],
+ ]
+];