Phuedx has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/348200 )
Change subject: WIP
......................................................................
WIP
Change-Id: If1ee1853ba7a9b2a66b24bb93b4e6062b92b0dba
---
M includes/PopupsHooks.php
1 file changed, 4 insertions(+), 12 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups
refs/changes/00/348200/1
diff --git a/includes/PopupsHooks.php b/includes/PopupsHooks.php
index 3429187..662b6bf 100644
--- a/includes/PopupsHooks.php
+++ b/includes/PopupsHooks.php
@@ -119,20 +119,12 @@
*/
public static function onResourceLoaderTestModules( array &$testModules,
ResourceLoader &$resourceLoader ) {
- $localBasePath = __DIR__ . '/..';
- $scripts = glob(
"{$localBasePath}/tests/qunit/ext.popups/{,**/}*.test.js", GLOB_BRACE );
- $start = strlen( $localBasePath ) + 1;
-
- $scripts = array_map( function ( $script ) use ( $start ) {
- return substr( $script, $start );
- }, $scripts );
-
$testModules['qunit']['ext.popups.tests'] = [
- 'scripts' => $scripts,
- 'dependencies' => [
- 'ext.popups'
+ 'scripts' => [
+ 'tests/qunit/ext.popups/processLinks.test.js',
+ 'src/processLinks.js',
],
- 'localBasePath' => $localBasePath,
+ 'localBasePath' => __DIR__ . '/..',
'remoteExtPath' => 'Popups',
];
}
--
To view, visit https://gerrit.wikimedia.org/r/348200
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If1ee1853ba7a9b2a66b24bb93b4e6062b92b0dba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Phuedx <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits