3 /* Modules registered when $wgEnableJavaScriptTest is true */
9 'test.sinonjs' => array(
11 'resources/lib/sinonjs/sinon-1.15.4.js',
12 // We want tests to work in IE, but can't include this as it
13 // will break the placeholders in Sinon because the hack it uses
14 // to hijack IE globals relies on running in the global scope
15 // and in ResourceLoader this won't be running in the global scope.
16 // Including it results (among other things) in sandboxed timers
17 // being broken due to Date inheritance being undefined.
18 // 'resources/lib/sinonjs/sinon-ie-1.15.4.js',
20 'targets' => array( 'desktop', 'mobile' ),
23 'test.mediawiki.qunit.testrunner' => array(
25 'tests/qunit/data/testrunner.js',
27 'dependencies' => array(
28 // Test runner configures QUnit but can't have it as dependency,
29 // see SpecialJavaScriptTest::viewQUnit.
31 'mediawiki.page.ready',
32 'mediawiki.page.startup',
37 'targets' => array( 'desktop', 'mobile' ),
41 Test suites for MediaWiki core modules
42 These must have a dependency on test.mediawiki.qunit.testrunner!
45 'test.mediawiki.qunit.suites' => array(
47 'tests/qunit/suites/resources/startup.test.js',
48 'tests/qunit/suites/resources/jquery/jquery.accessKeyLabel.test.js',
49 'tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js',
50 'tests/qunit/suites/resources/jquery/jquery.byteLength.test.js',
51 'tests/qunit/suites/resources/jquery/jquery.byteLimit.test.js',
52 'tests/qunit/suites/resources/jquery/jquery.color.test.js',
53 'tests/qunit/suites/resources/jquery/jquery.colorUtil.test.js',
54 'tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js',
55 'tests/qunit/suites/resources/jquery/jquery.hidpi.test.js',
56 'tests/qunit/suites/resources/jquery/jquery.highlightText.test.js',
57 'tests/qunit/suites/resources/jquery/jquery.localize.test.js',
58 'tests/qunit/suites/resources/jquery/jquery.makeCollapsible.test.js',
59 'tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js',
60 'tests/qunit/suites/resources/jquery/jquery.placeholder.test.js',
61 'tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js',
62 'tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js',
63 'tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js',
64 'tests/qunit/suites/resources/jquery/jquery.textSelection.test.js',
65 'tests/qunit/data/mediawiki.jqueryMsg.data.js',
66 'tests/qunit/suites/resources/mediawiki/mediawiki.requestIdleCallback.test.js',
67 'tests/qunit/suites/resources/mediawiki/mediawiki.errorLogger.test.js',
68 'tests/qunit/suites/resources/mediawiki/mediawiki.jqueryMsg.test.js',
69 'tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js',
70 'tests/qunit/suites/resources/mediawiki/mediawiki.messagePoster.factory.test.js',
71 'tests/qunit/suites/resources/mediawiki/mediawiki.RegExp.test.js',
72 'tests/qunit/suites/resources/mediawiki/mediawiki.storage.test.js',
73 'tests/qunit/suites/resources/mediawiki/mediawiki.template.test.js',
74 'tests/qunit/suites/resources/mediawiki/mediawiki.template.mustache.test.js',
75 'tests/qunit/suites/resources/mediawiki/mediawiki.test.js',
76 'tests/qunit/suites/resources/mediawiki/mediawiki.html.test.js',
77 'tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js',
78 'tests/qunit/suites/resources/mediawiki/mediawiki.toc.test.js',
79 'tests/qunit/suites/resources/mediawiki/mediawiki.track.test.js',
80 'tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js',
81 'tests/qunit/suites/resources/mediawiki/mediawiki.user.test.js',
82 'tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js',
83 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.test.js',
84 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.category.test.js',
85 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.messages.test.js',
86 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.options.test.js',
87 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.parse.test.js',
88 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.upload.test.js',
89 'tests/qunit/suites/resources/mediawiki.api/mediawiki.api.watch.test.js',
90 'tests/qunit/suites/resources/mediawiki.api/mediawiki.ForeignApi.test.js',
91 'tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.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',
97 'dependencies' => array(
98 'jquery.accessKeyLabel',
99 'jquery.autoEllipsis',
106 'jquery.highlightText',
108 'jquery.makeCollapsible',
109 'jquery.mwExtension',
110 'jquery.placeholder',
112 'jquery.tablesorter',
113 'jquery.textSelection',
115 'mediawiki.api.category',
116 'mediawiki.api.messages',
117 'mediawiki.api.options',
118 'mediawiki.api.parse',
119 'mediawiki.api.upload',
120 'mediawiki.api.watch',
121 'mediawiki.ForeignApi.core',
122 'mediawiki.jqueryMsg',
123 'mediawiki.messagePoster',
130 'mediawiki.template.mustache',
131 'mediawiki.template',
133 'mediawiki.special.recentchanges',
134 'mediawiki.language',
137 'mediawiki.experiments',
138 'test.mediawiki.qunit.testrunner',