2 // These modules are only registered when $wgEnableJavaScriptTest is true
3 use MediaWiki\ResourceLoader\FilePath
;
9 'tests/qunit/data/sinonjs-local.js',
10 'resources/lib/sinonjs/sinon.js',
14 'mediawiki.qunit-testrunner' => [
16 'tests/qunit/data/testrunner.js',
19 'mediawiki.page.ready',
24 'mediawiki.language.testdata' => [
25 'localBasePath' => "{$GLOBALS['IP']}/resources/src/mediawiki.language/languages",
26 'remoteBasePath' => "{$GLOBALS['wgResourceBasePath']}/resources/src/mediawiki.language/languages",
28 new FilePath( 'mediawiki.jqueryMsg.testdata.js', __DIR__
. '/data' ),
29 new FilePath( 'mediawiki.jqueryMsg.data.json', __DIR__
. '/data' ),
45 'tests/qunit/resources/startup/mediawiki.test.js',
46 'tests/qunit/resources/startup/mw.Map.test.js',
47 'tests/qunit/resources/startup/mw.loader.test.js',
48 'tests/qunit/resources/startup/mw.requestIdleCallback.test.js',
49 'tests/qunit/resources/startup/jscompat.test.js',
51 'name' => 'tests/qunit/resources/startup/clientprefs.js',
52 'callback' => static function () {
53 return 'mw.clientprefs = function ( document, $VARS ) { '
55 file_get_contents( MW_INSTALL_PATH
. '/resources/src/startup/clientprefs.js' ),
56 [ '__COOKIE_PREFIX__' => '' ]
61 'tests/qunit/resources/startup/clientprefs.test.js',
62 'tests/qunit/resources/jquery.highlightText.test.js',
63 'tests/qunit/resources/jquery.lengthLimit.test.js',
64 'tests/qunit/resources/jquery.makeCollapsible.test.js',
65 'tests/qunit/resources/jquery.tablesorter.test.js',
66 'tests/qunit/resources/jquery.textSelection.test.js',
67 'tests/qunit/resources/mediawiki.base/errorLogger.test.js',
68 'tests/qunit/resources/mediawiki.base/mediawiki.base.test.js',
69 'tests/qunit/resources/mediawiki.base/html.test.js',
70 'tests/qunit/resources/mediawiki.base/track.test.js',
71 'tests/qunit/resources/mediawiki.jqueryMsg.test.js',
72 'tests/qunit/resources/mediawiki.messagePoster/factory.test.js',
73 'tests/qunit/resources/mediawiki.String.test.js',
74 'tests/qunit/resources/mediawiki.storage.test.js',
75 'tests/qunit/resources/mediawiki.template.test.js',
76 'tests/qunit/resources/mediawiki.template.mustache.test.js',
77 'tests/qunit/resources/mediawiki.inspect.test.js',
78 'tests/qunit/resources/mediawiki.router.test.js',
79 'tests/qunit/resources/mediawiki.Title.test.js',
80 'tests/qunit/resources/mediawiki.toc.test.js',
81 'tests/qunit/resources/mediawiki.Uri.test.js',
82 'tests/qunit/resources/mediawiki.user.test.js',
83 'tests/qunit/resources/mediawiki.util/util.test.js',
84 'tests/qunit/resources/mediawiki.util/accessKeyLabel.test.js',
85 'tests/qunit/resources/mediawiki.api/mediawiki.api.test.js',
86 'tests/qunit/resources/mediawiki.api/mediawiki.api.category.test.js',
87 'tests/qunit/resources/mediawiki.api/mediawiki.api.edit.test.js',
88 'tests/qunit/resources/mediawiki.api/mediawiki.api.messages.test.js',
89 'tests/qunit/resources/mediawiki.api/mediawiki.api.options.test.js',
90 'tests/qunit/resources/mediawiki.api/mediawiki.api.parse.test.js',
91 'tests/qunit/resources/mediawiki.api/mediawiki.api.upload.test.js',
92 'tests/qunit/resources/mediawiki.api/mediawiki.api.watch.test.js',
93 'tests/qunit/resources/mediawiki.api/mediawiki.rest.test.js',
94 'tests/qunit/resources/mediawiki.ForeignApi/mediawiki.ForeignApi.test.js',
95 'tests/qunit/resources/mediawiki.ForeignApi/mediawiki.ForeignRest.test.js',
96 'tests/qunit/resources/mediawiki.rcfilters/dm.FiltersViewModel.test.js',
97 'tests/qunit/resources/mediawiki.rcfilters/dm.FilterItem.test.js',
98 'tests/qunit/resources/mediawiki.rcfilters/dm.SavedQueryItemModel.test.js',
99 'tests/qunit/resources/mediawiki.rcfilters/dm.SavedQueriesModel.test.js',
100 'tests/qunit/resources/mediawiki.rcfilters/UriProcessor.test.js',
101 'tests/qunit/resources/mediawiki.widgets/MediaSearch/mediawiki.widgets.APIResultsQueue.test.js',
102 'tests/qunit/resources/mediawiki.widgets/NamespaceInput/mediawiki.widgets.NamespaceInputWidget.test.js',
103 'tests/qunit/resources/mediawiki.widgets/Table/mediawiki.widgets.TableWidget.test.js',
104 'tests/qunit/resources/mediawiki.widgets/UserInputWidget/mediawiki.widgets.UserInputWidget.test.js',
105 'tests/qunit/resources/mediawiki.language.test.js',
106 'tests/qunit/resources/mediawiki.cldr.test.js',
107 'tests/qunit/resources/mediawiki.cookie.test.js',
108 'tests/qunit/resources/mediawiki.deflate.test.js',
109 'tests/qunit/resources/mediawiki.experiments.test.js',
110 'tests/qunit/resources/mediawiki.visibleTimeout.test.js',
113 'jquery.highlightText',
114 'jquery.lengthLimit',
115 'jquery.makeCollapsible',
116 'jquery.tablesorter',
117 'jquery.textSelection',
119 'mediawiki.ForeignApi.core',
120 'mediawiki.jqueryMsg',
121 'mediawiki.messagePoster',
128 'mediawiki.template.mustache',
129 'mediawiki.template',
131 'mediawiki.rcfilters.filters.ui',
132 'mediawiki.language',
133 'mediawiki.language.testdata',
137 'mediawiki.experiments',
140 'mediawiki.visibleTimeout',
141 'mediawiki.widgets.MediaSearch',
142 'mediawiki.widgets.Table',
143 'mediawiki.widgets.UserInputWidget',
144 'mediawiki.qunit-testrunner',