Esanders has uploaded a new change for review.
https://gerrit.wikimedia.org/r/274093
Change subject: Check VE is available before running unit tests
......................................................................
Check VE is available before running unit tests
Bug: T127763
Change-Id: Ic5eef55c3327f95362e2f69fbebc86be306790f7
---
M includes/Graph.hooks.php
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Graph
refs/changes/93/274093/1
diff --git a/includes/Graph.hooks.php b/includes/Graph.hooks.php
index 2fbea28..1b0e3c3 100644
--- a/includes/Graph.hooks.php
+++ b/includes/Graph.hooks.php
@@ -22,7 +22,10 @@
public static function onResourceLoaderTestModules( array
&$testModules, ResourceLoader &$resourceLoader ) {
$resourceModules = $resourceLoader->getConfig()->get(
'ResourceModules' );
- if ( isset( $resourceModules[ 'ext.graph.visualEditor' ] ) ||
$resourceLoader->isModuleRegistered( 'ext.graph.visualEditor' ) ) {
+ if (
+ isset( $resourceModules[ 'ext.visualEditor.mediawiki' ]
) ||
+ $resourceLoader->isModuleRegistered(
'ext.visualEditor.mediawiki' )
+ ) {
$testModules['qunit']['ext.graph.visualEditor.test'] =
array(
'scripts' => array(
'modules/ve-graph/tests/ext.graph.visualEditor.test.js'
--
To view, visit https://gerrit.wikimedia.org/r/274093
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic5eef55c3327f95362e2f69fbebc86be306790f7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits