Merge "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git] / tests / qunit / QUnitTestResources.php
1 <?php
2
3 /* Modules registered when $wgEnableJavaScriptTest is true */
4
5 return [
6
7 /* Utilities */
8
9 'test.sinonjs' => [
10 'scripts' => [
11 'tests/qunit/suites/resources/test.sinonjs/index.js',
12 'resources/lib/sinonjs/sinon.js',
13 ],
14 'targets' => [ 'desktop', 'mobile' ],
15 ],
16
17 'test.mediawiki.qunit.testrunner' => [
18 'scripts' => [
19 'tests/qunit/data/testrunner.js',
20 ],
21 'dependencies' => [
22 // Test runner configures QUnit but can't have it as dependency,
23 // see SpecialJavaScriptTest::viewQUnit.
24 'jquery.getAttrs',
25 'mediawiki.page.ready',
26 'mediawiki.page.startup',
27 'test.sinonjs',
28 ],
29 'targets' => [ 'desktop', 'mobile' ],
30 ],
31
32 /*
33 Test suites for MediaWiki core modules
34 These must have a dependency on test.mediawiki.qunit.testrunner!
35 */
36
37 'test.mediawiki.qunit.suites' => [
38 'scripts' => [
39 'tests/qunit/suites/resources/startup.test.js',
40 'tests/qunit/suites/resources/jquery/jquery.accessKeyLabel.test.js',
41 'tests/qunit/suites/resources/jquery/jquery.color.test.js',
42 'tests/qunit/suites/resources/jquery/jquery.colorUtil.test.js',
43 'tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js',
44 'tests/qunit/suites/resources/jquery/jquery.highlightText.test.js',
45 'tests/qunit/suites/resources/jquery/jquery.lengthLimit.test.js',
46 'tests/qunit/suites/resources/jquery/jquery.makeCollapsible.test.js',
47 'tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js',
48 'tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js',
49 'tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js',
50 'tests/qunit/suites/resources/jquery/jquery.textSelection.test.js',
51 'tests/qunit/data/mediawiki.jqueryMsg.data.js',
52 'tests/qunit/suites/resources/mediawiki/mediawiki.requestIdleCallback.test.js',
53 'tests/qunit/suites/resources/mediawiki/mediawiki.errorLogger.test.js',
54 'tests/qunit/suites/resources/mediawiki/mediawiki.jqueryMsg.test.js',
55 'tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js',
56 'tests/qunit/suites/resources/mediawiki/mediawiki.messagePoster.factory.test.js',
57 'tests/qunit/suites/resources/mediawiki/mediawiki.RegExp.test.js',
58 'tests/qunit/suites/resources/mediawiki/mediawiki.String.byteLength.test.js',
59 'tests/qunit/suites/resources/mediawiki/mediawiki.String.trimByteLength.test.js',
60 'tests/qunit/suites/resources/mediawiki/mediawiki.storage.test.js',
61 'tests/qunit/suites/resources/mediawiki/mediawiki.template.test.js',
62 'tests/qunit/suites/resources/mediawiki/mediawiki.template.mustache.test.js',
63 'tests/qunit/suites/resources/mediawiki/mediawiki.test.js',
64 'tests/qunit/suites/resources/mediawiki/mediawiki.base.test.js',
65 'tests/qunit/suites/resources/mediawiki/mediawiki.loader.test.js',
66 'tests/qunit/suites/resources/mediawiki/mediawiki.html.test.js',
67 'tests/qunit/suites/resources/mediawiki/mediawiki.inspect.test.js',
68 'tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js',
69 'tests/qunit/suites/resources/mediawiki/mediawiki.toc.test.js',
70 'tests/qunit/suites/resources/mediawiki/mediawiki.track.test.js',
71 'tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js',
72 'tests/qunit/suites/resources/mediawiki/mediawiki.user.test.js',
73 'tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js',
74 'tests/qunit/suites/resources/mediawiki/mediawiki.viewport.test.js',
75 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.test.js',
76 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.category.test.js',
77 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.edit.test.js',
78 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.messages.test.js',
79 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.options.test.js',
80 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.parse.test.js',
81 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.upload.test.js',
82 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.watch.test.js',
83 'tests/qunit/suites/resources/mediawiki.api/mediawiki.ForeignApi.test.js',
84 'tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js',
85 'tests/qunit/suites/resources/mediawiki.rcfilters/dm.FiltersViewModel.test.js',
86 'tests/qunit/suites/resources/mediawiki.rcfilters/dm.FilterItem.test.js',
87 'tests/qunit/suites/resources/mediawiki.rcfilters/dm.SavedQueryItemModel.test.js',
88 'tests/qunit/suites/resources/mediawiki.rcfilters/dm.SavedQueriesModel.test.js',
89 'tests/qunit/suites/resources/mediawiki.rcfilters/UriProcessor.test.js',
90 'tests/qunit/suites/resources/mediawiki.widgets/' .
91 'MediaSearch/mediawiki.widgets.APIResultsQueue.test.js',
92 'tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js',
93 'tests/qunit/suites/resources/mediawiki/mediawiki.cldr.test.js',
94 'tests/qunit/suites/resources/mediawiki/mediawiki.cookie.test.js',
95 'tests/qunit/suites/resources/mediawiki/mediawiki.experiments.test.js',
96 'tests/qunit/suites/resources/mediawiki/mediawiki.visibleTimeout.test.js',
97 ],
98 'dependencies' => [
99 'jquery.accessKeyLabel',
100 'jquery.color',
101 'jquery.colorUtil',
102 'jquery.getAttrs',
103 'jquery.highlightText',
104 'jquery.lengthLimit',
105 'jquery.makeCollapsible',
106 'jquery.tabIndex',
107 'jquery.tablesorter',
108 'jquery.textSelection',
109 'mediawiki.api',
110 'mediawiki.ForeignApi.core',
111 'mediawiki.jqueryMsg',
112 'mediawiki.messagePoster',
113 'mediawiki.RegExp',
114 'mediawiki.String',
115 'mediawiki.storage',
116 'mediawiki.Title',
117 'mediawiki.toc',
118 'mediawiki.Uri',
119 'mediawiki.user',
120 'mediawiki.template.mustache',
121 'mediawiki.template',
122 'mediawiki.util',
123 'mediawiki.viewport',
124 'mediawiki.special.recentchanges',
125 'mediawiki.rcfilters.filters.dm',
126 'mediawiki.language',
127 'mediawiki.cldr',
128 'mediawiki.cookie',
129 'mediawiki.experiments',
130 'mediawiki.inspect',
131 'mediawiki.visibleTimeout',
132 'mediawiki.widgets.MediaSearch',
133 'test.mediawiki.qunit.testrunner',
134 ],
135 ]
136 ];