Project:Extension tests

From BugSigDB

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]

Test
orange, red, yellow, yellow
Expected
orange, red, yellow, yellow

Bootstrap[edit]

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]

For semantic wikis

The search results should display "ask" in bold:

CodeEditor[edit]

This should open in the ACE editor interface: edit

CodeMirror[edit]

  • 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]

This should be a valid link Special:RequestAccount

ConfirmEdit[edit]

skipcaptcha right should be present here.

ContributionScores[edit]

This should be a valid link: Special:ContributionScores

DataTransfer[edit]

This should be a valid link: Special:ImportCSV

DisplayTitle[edit]

Expected

Project:Extension tests

Result

Project:Extension tests

DynamicPageList3[edit]

Test
Expected
  • A link to a page

Echo[edit]

This should be a valid link: Special:Notifications

Elastica[edit]

Usually, it is a dependency of CirrusSearch. If CirrusSearch test is passed, Elastica works. The extension must be listed on Special:Version.

EmbedVideo[edit]

Three videos should be below:

GoogleLogin[edit]

This should be a valid link: Special:ManageGoogleLogin

GTag[edit]

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

Interwiki[edit]

This should be a valid link: Special:Interwiki

LinkTarget[edit]

If $wgLinkTargetParentClasses = [ 'target-blank' ]; is added to LocalSettings.php

Loops (requires Variables)[edit]

Test
1 2 3
Expected
1 2 3

MyVariables[edit]

Test
3.138.116.20
Expected
Your user name or the IP for anonymous users

NCBITaxonomyLookup[edit]

Test

Ranoidea aurea

Expected

Ranoidea aurea

Nuke[edit]

This should be a valid link: Special:Nuke

PageForms[edit]

This should be a valid link: Special:Forms

ParserFunctions[edit]

Test math functions
10
Expected
10
Test string functions
8
Expected
8

PubmedParser[edit]

Test

<ref name="Miller2011"></ref>

Expected

<ref name="Miller2011"></ref> or citation link.

ReCaptchaNoCaptcha[edit]

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

ReplaceText[edit]

This should be a valid link: Special:ReplaceText

Scribunto[edit]

Module:String (source)[edit]

Test
15
Expected
15

SemanticDependencyUpdater[edit]

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

Semantic Extra Special Properties[edit]

At least one of queries should return a value

  1. -
  2. -
  3. -
  4. -
  5. -
  6. WikiWorks
  7. WikiWorks
  8. -
  9. -
  10. -
  11. -
  12. -
  13. -
  14. -
  15. -
  16. -
  17. -

SemanticMediaWiki[edit]

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

Semantic Result Formats[edit]

Test (old wikis)
Expected
A nice-looking DataTable with a search field

SemanticScribunto[edit]

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]

This should render a simple tooltip link: Hover over this to see a tooltip. This should render a simple tooltip icon:

SubpageWatchlist[edit]

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]

The following must be colorful:

 3def quick_sort(arr):
 4	less = []
 5	pivot_list = []
 6	more = []
 7	if len(arr) <= 1:
 8		return arr
 9	else:
10		pass

Variables[edit]

Test
testing
Expected
testing

VariablesLua[edit]

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

WikiEditor[edit]

This should load a tabbed WikiEditor: edit

WikiSEO[edit]

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"/>