Adrian Lang has uploaded a new change for review. https://gerrit.wikimedia.org/r/175986
Change subject: Add missing test resources ...................................................................... Add missing test resources Change-Id: I8b3309efce1602a1901072b869c59167638c3a1b --- A tests/resources.php 1 file changed, 47 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseJavaScriptApi refs/changes/86/175986/1 diff --git a/tests/resources.php b/tests/resources.php new file mode 100644 index 0000000..64eeb1d --- /dev/null +++ b/tests/resources.php @@ -0,0 +1,47 @@ +<?php + +/** + * @licence GNU GPL v2+ + * @author H. Snater < mediaw...@snater.com > + * + * @codeCoverageIgnoreStart + */ +return call_user_func( function() { + + preg_match( '+^(.*?)' . DIRECTORY_SEPARATOR . '(vendor|extensions)' . DIRECTORY_SEPARATOR . '(.*)$+', __DIR__, $remoteExtPathParts ); + $moduleTemplate = array( + 'localBasePath' => __DIR__, + 'remoteExtPath' => '../' . $remoteExtPathParts[2] . DIRECTORY_SEPARATOR . $remoteExtPathParts[3], + ); + + $modules = array( + 'wikibase.api.RepoApi.tests' => $moduleBase + array( + 'scripts' => array( + 'RepoApi.tests.js', + ), + 'dependencies' => array( + 'wikibase', + 'wikibase.api.getLocationAgnosticMwApi', + 'wikibase.api.RepoApi', + ), + ), + + 'wikibase.api.RepoApiError.tests' => $moduleBase + array( + 'scripts' => array( + 'RepoApiError.tests.js', + ), + 'dependencies' => array( + 'wikibase', + 'wikibase.api.RepoApiError', + ), + 'messages' => array( + 'wikibase-error-unexpected', + 'wikibase-error-remove-timeout', + 'wikibase-error-ui-client-error', + ), + ), + ); + + return $modules; + +} ); -- To view, visit https://gerrit.wikimedia.org/r/175986 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8b3309efce1602a1901072b869c59167638c3a1b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikibaseJavaScriptApi Gerrit-Branch: master Gerrit-Owner: Adrian Lang <adrian.l...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits