ETHW:Extension tests

From ETHW

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.


Bootstrap

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

ChangeAuthor

This should be a valid link: Special:ChangeAuthor

CirrusSearch

The following link (using the cirrusDumpQuery parameter) should show a JSON object with details of the search:

Cite

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

Confirm User Accounts

This should be a valid link Special:RequestAccount

ConfirmEdit

skipcaptcha right should be present here.

ContactPage

This should be a valid link: Contact us

Data Transfer

This should be a valid link: Special:ImportCSV

Echo

This should be a valid link: Special:Notifications

Elastica

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

GTag

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

Note

It will not load if you work under the account with gtag-exempt permission. The permission is to be temporarily disabled to complete the test.

IframePage

This should be a valid link: Special:IframePage And it should load a timeline.

InputBox

Test
Expected
An input box

Interwiki

This should be a valid link: Special:Interwiki

LockAuthor

editall right should be present here.

Maps

Variant 1
Loading map...
Test 
52° 30' 58.57" N, 13° 22' 39.73" E
Expected
52° 30' 58.59" N, 13° 22' 39.73" E
Variant 2
Loading map...
Test 
52° 30' 58.57" N, 13° 22' 39.73" E
Expected
52° 30' 58.59" N, 13° 22' 39.73" E

MsUpload

This should have an upload box: edit

MyVariables

The below should all look reasonable:

Login of current user
13.59.36.9
Login of current user or empty for anonymous users
Real name of current user
Path to wiki logo
Random (v4) UUID
55e13454-3495-49ef-af2c-9c5a6f58c75d
Language that the user specified in the preferences
en

MyVariables (ETHW) Custom Variables for this site

CURRENTGROUP
LOGGEDIN
DOCKETID
388
NOMINATION
ETHW:Extension_tests
MILESTONE
ETHW:Extension_tests
AMAUTHOR
AUTHORNAME
WikiWorks

Nuke

This should be a valid link: Special:Nuke

PageForms

This should be a valid link: Special:Forms

ParserFunctions

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

Poem

Test

Une terre au flanc maigre, âpre, avare, inclément
Où les vivants pensifs travaillent tristement,
Et qui donne à regret à cette race humaine
Un peu de pain pour tant de labeur et de peine ;
Des hommes durs, éclos sur ces sillons ingrats ;
Des cités d’où s’en vont, en se tordant les bras,
La charité, la paix, la foi, sœurs vénérables ;
L’orgueil chez les puissants et chez les misérables ;

Expected
A nicely formatted poem

ReCaptchaNoCaptcha

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

Renameuser

This should be a valid link: Special:RenameUser

Replace Text

This should be a valid link: Special:ReplaceText

SemanticCompoundQueries

This should produce no error:

  • File:AR-649 - AIEE Winter Meeting, Jan 31-Feb 4, 1955 - Compact Program.pdf (Modification date"Modification date" is a predefined property that corresponds to the date of the last modification of a subject and is provided by Semantic MediaWiki.: 29 April 2019 19:37:42)
  • Richard C. Jaeger (Modification date"Modification date" is a predefined property that corresponds to the date of the last modification of a subject and is provided by Semantic MediaWiki.: 2 March 2022 19:33:48)

SemanticMediaWiki

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

Sentry

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

ShowMe

This should produce a dropdown:

Some text shown when clicking the first option.

SimpleMathJax

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)

Skinny

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

SubPageList

Result

0

Expected

An integer matching the number of pages at Special:PrefixIndex/ETHW:Extension tests/

Survey

This should be a valid link: Special:Surveys

SyntaxHighlight

Note
this extension make also be referred to as "SyntaxHighlight GeSHi"

The following must be colorful:

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass

UniversalLanguageSelector

No test was invented. The language selector should appear somewhere and the extension must be listed on Special:Version.

VisualEditor

This should load VisualEditor in edit mode: edit

Widgets

Test
Widget
Expected
Widget

Widget:Audio

An audio player should be here:

Widget:Disqus

Error in widget DISQUS: Unable to load template 'wiki:DISQUS'

Widget:Vimeo

Widget:YouTube16x9

A YouTube video should be visible:

WikiEditor

This should load a tabbed WikiEditor: edit

WikiSEO

The page source should contain:

<title>Your page title</title>

and:

<meta name="keywords" content="these,are,your,keywords"/>

There should also be a description, with

<meta name="description" content="Your meta description"/>

but the content may be different if another extension (like Description2) is installed and tries to set the description. As long as there is a description set and the page title and keywords match, having a different description should not be considered a failure.

... more about "Extension tests"
foaf:knowsA person known by this person (indicating some level of reciprocated interaction between the parties).