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
18.97.9.170
Login of current user or empty for anonymous users
Real name of current user
Path to wiki logo
Random (v4) UUID
527d0892-62e2-4383-bff5-ca26e03e1d0d
Language that the user specified in the preferences
en

MyVariables (ETHW) Custom Variables for this site

CURRENTGROUP
LOGGEDIN
DOCKETID
385
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:2004 IEEE Conference on the History of Electronics - 6309-034.jpg (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.: 20 October 2022 20:28:30)
  • Robert Larson (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.: 18 April 2022 14:17:18)

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).