Project:Extension tests
The following are tests of the extensions running on the wiki. Where applicable, if the "Test" value matches the "Expected" value, the extension can be assumed to be working.
Arrays[edit source]
- Test
- orange, red, yellow, yellow
- Expected
- orange, red, yellow, yellow
Bootstrap[edit source]
- This test should be done while using the Chameleon skin; view page with useskin=chameleon
This should be a greeny shadowed alert box with white text:
I am bootstrapped
CirrusSearch[edit source]
- For semantic wikis
The search results should display "ask" in bold:
CodeEditor[edit source]
This should open in the ACE editor interface: edit
CodeMirror[edit source]
- When navigating to editing the main page the codemirror interface should be loaded. Make sure that the option is enabled by running
mw.loader.using( [ 'mediawiki.api' ], () => new mw.Api().saveOption( 'usecodemirror', 1 ) );
and then reloading the page.
ConfirmAccount[edit source]
This should be a valid link Special:RequestAccount
ConfirmEdit[edit source]
skipcaptcha
right should be present here.
ContributionScores[edit source]
This should be a valid link: Special:ContributionScores
DataTransfer[edit source]
This should be a valid link: Special:ImportCSV
DiscussionTools[edit source]
This should be a valid link: Special:FindComment
DisplayTitle[edit source]
- Expected
Project:Extension tests
- Result
Project:Extension tests
DynamicPageList3[edit source]
- Test
- Expected
- A link to a page
Echo[edit source]
This should be a valid link: Special:Notifications
Elastica[edit source]
Usually, it is a dependency of CirrusSearch. If CirrusSearch test is passed, Elastica works. The extension must be listed on Special:Version.
EmbedVideo[edit source]
Three videos should be below:
{{#evt: |service=youtube |id=https://www.youtube.com/watch?v=DWef69ItVrU |dimensions=200 }}
Gadgets[edit source]
- This link must not contain the error message "
BugSigDB does not have namespace "2300"
. - You have gadgets!
GoogleLogin[edit source]
This should be a valid link: Special:ManageGoogleLogin
GTag[edit source]
The page source head section should contain a link to the script:
//www.googletagmanager.com/gtag/js
Interwiki[edit source]
This should be a valid link: Special:Interwiki
LinkTarget[edit source]
If $wgLinkTargetParentClasses = [ 'target-blank' ];
is added to LocalSettings.php
Linter[edit source]
No test was invented. The extension must be listed on Special:Version.
Loops (requires Variables)[edit source]
- Test
- 1 2 3
- Expected
- 1 2 3
MyVariables[edit source]
- Test
- 18.220.100.248
- Expected
- Your user name or the IP for anonymous users
NCBITaxonomyLookup[edit source]
- Test
Ranoidea aurea
- Expected
Ranoidea aurea
Nuke[edit source]
This should be a valid link: Special:Nuke
PageForms[edit source]
This should be a valid link: Special:Forms
ParserFunctions[edit source]
- Test math functions
- 10
- Expected
- 10
- Test string functions
- 8
- Expected
- 8
PubmedParser[edit source]
- Test
<ref name="Miller2011"></ref>
- Expected
<ref name="Miller2011"></ref>
or citation link.
ReCaptchaNoCaptcha[edit source]
No test was invented. The extension must be listed on Special:Version.
ReplaceText[edit source]
This should be a valid link: Special:ReplaceText
Scribunto[edit source]
Module:String (source)[edit source]
- Test
- 15
- Expected
- 15
SemanticDependencyUpdater[edit source]
No test was invented. The extension must be listed on Special:Version.
Semantic Extra Special Properties[edit source]
At least one of queries should return a value
SemanticMediaWiki[edit source]
Semantic Result Formats[edit source]
- Test (old wikis)
- Expected
- A nice-looking DataTable with a search field
SemanticScribunto[edit source]
Should be an icon with information popup -> some text
This is sample outputThis is a warning
-- Module:SMW local p = {} -- set with direct return results function p.info( frame ) if not mw.smw then return "mw.smw module not found" end if frame.args[1] == nil then return "no parameter found" end local tooltip if frame.args[2] then tooltip = mw.smw.info( frame.args[1], frame.args[2] ) else tooltip = mw.smw.info( frame.args[1] ) end return tooltip end -- another example, info used inside another function function p.inlineInfo( frame ) local output = 'This is sample output' -- so some stuff output = output .. mw.smw.info( 'This is a warning', 'warning' ) -- some more stuff return output end return p
SimpleTooltip[edit source]
This should render a simple tooltip link: Hover over this to see a tooltip. This should render a simple tooltip icon:
SubpageWatchlist[edit source]
On Special:Watchlist in the filter options ("Filter changes (use menu or search for filter name)") under "Type of change" there should be a subpage option ("Subpages").
SyntaxHighlight GeSHi[edit source]
The following must be colorful:
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
TextExtracts[edit source]
The output should not contain Unrecognized parameter: exchars
error:
Variables[edit source]
- Test
- testing
- Expected
- testing
VariablesLua[edit source]
Module:VariablesLua[edit source]
- Test1
- Defined in wikitext, retrieved by lua
- Expected1
- Defined in wikitext, retrieved by lua
- Test2
- Defined in lua, retrieved by wikitext
- Expected
- Defined in lua, retrived by wikitext
local p = {} function p.get(frame) return mw.ext.VariablesLua.var('testLuaGet') end function p.set(frame) mw.ext.VariablesLua.vardefine('testLuaSet', 'Defined in lua, retrieved by wikitext') end return p
VisualEditor[edit source]
This should load VisualEditor in edit mode: edit
WikiEditor[edit source]
This should load a tabbed WikiEditor: edit
WikiSEO[edit source]
The page source should contain:
<title></nowiki>Your page title<nowiki></title>
and:
<meta name="keywords" content="these,are,your,keywords"/> <meta name="description" content="Your meta description"/>