From: Timo Tijhof Date: Tue, 30 Jul 2019 00:05:42 +0000 (+0100) Subject: resourceloader: Only register 'jquery.qunit' in test context X-Git-Tag: 1.34.0-rc.0~826^2 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=0c7b707a9993d8131699de3171a373de2a138425;p=lhc%2Fweb%2Fwiklou.git resourceloader: Only register 'jquery.qunit' in test context Change-Id: I0ea4bb73d5b886ea903a19a12bdd464778af0002 --- diff --git a/resources/Resources.php b/resources/Resources.php index da0112258f..e29d6581bf 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -266,11 +266,6 @@ return [ 'scripts' => 'resources/src/jquery/jquery.mw-jump.js', 'targets' => [ 'desktop', 'mobile' ], ], - 'jquery.qunit' => [ - 'scripts' => 'resources/lib/qunitjs/qunit.js', - 'styles' => 'resources/lib/qunitjs/qunit.css', - 'targets' => [ 'desktop', 'mobile' ], - ], 'jquery.spinner' => [ 'scripts' => 'resources/src/jquery.spinner/spinner.js', 'styles' => 'resources/src/jquery.spinner/spinner.less', diff --git a/tests/qunit/QUnitTestResources.php b/tests/qunit/QUnitTestResources.php index 4969a8b45f..d55b603ba9 100644 --- a/tests/qunit/QUnitTestResources.php +++ b/tests/qunit/QUnitTestResources.php @@ -6,6 +6,12 @@ return [ /* Utilities */ + 'jquery.qunit' => [ + 'scripts' => 'resources/lib/qunitjs/qunit.js', + 'styles' => 'resources/lib/qunitjs/qunit.css', + 'targets' => [ 'desktop', 'mobile' ], + ], + 'test.sinonjs' => [ 'scripts' => [ 'tests/qunit/suites/resources/test.sinonjs/index.js',