Project:Extension tests

From MediaWiki

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.

AIC[edit source]

The ext.AIC ResourceLoader module should be registered; in the developer console running mw.loader.getState('ext.AIC'); should return a string (rather than null).

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

BreadCrumbs2[edit source]

Add the following to the MediaWiki:Breadcrumbs:

* Tests @ [[Project:Extension_tests|Extension tests]] > [[:Category:Tests|Tests]] >

The breadcrumbs shall be created at the top of the Project:Extension_tests.

CirrusSearch[edit source]

For Cite enabled wikis

The search results should display "ref" in bold:

Cite[edit source]

Test
Text[1]
  1. Test
Expected
Text[1]
  1. Jump up Test

Data Transfer[edit source]

This should be a valid link: Special:ImportCSV

EditAccount[edit source]

This should be a valid link: Special:EditAccount

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.

Gadgets[edit source]

  • This link must not contain the error message "MediaWiki does not have namespace "2300".
  • You have gadgets!

GTag[edit source]

The page source head section should contain a link to the script: //www.googletagmanager.com/gtag/js

LinkTarget[edit source]

If $wgLinkTargetParentClasses = [ 'newtab-internal' ]; is added to LocalSettings.php

Lockdown[edit source]

No test was invented. The extension must be listed on Special:Version.

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

ParserHooks[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

RottenLinks[edit source]

This should be a valid link: Special:RottenLinks

SemanticMediaWiki[edit source]

Test
Test
Expected
Test
There should be a factbox at the page bottom.

Sentry (disabled)[edit source]

No test was invented. The extension must be listed on Special:Version.

SimpleMathJax[edit source]

Note
this extension does not work with the Math extension installed
Test
[math]\displaystyle{ \int_{(x,y)\in C} x^3\, dx + 4y^2\, dy }[/math]
Expected
∫(x,y)∈Cx3dx+4y2dy (but much better-looking)

And if SMJ added as $wgSmjExtraInlineMath = [ [ 'SMJ(', ')SMJ' ] ]; in LocalSettings.php file:

Test
SMJ(E=mc^2)SMJ
Expected
E=mc^2 (but much better-looking)

SubPageList[edit source]

Result

0

Expected

0

UrlGetParameters[edit source]

Test
Click here to test.
Expected
Test

Variables[edit source]

Test
testing
Expected
testing

VisualEditor[edit source]

This should load VisualEditor in edit mode: edit

Widgets[edit source]

Test
Widget
Expected
Widget

Widget:Google Calendar[edit source]

Widget:Vimeo[edit source]

Widget:YouTube[edit source]

A YouTube video should be visible:

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"/>
... more about "Extension tests"
Foaf:knowsA person known by this person (indicating some level of reciprocated interaction between the parties).