From 0c7b707a9993d8131699de3171a373de2a138425 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 30 Jul 2019 01:05:42 +0100 Subject: [PATCH] resourceloader: Only register 'jquery.qunit' in test context Change-Id: I0ea4bb73d5b886ea903a19a12bdd464778af0002 --- resources/Resources.php | 5 ----- tests/qunit/QUnitTestResources.php | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) 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', -- 2.20.1