FamilySearch Wiki:Extension tests: Difference between revisions

m
→‎Semantic Meeting Minutes: switch test and expected lines
m (→‎Semantic Meeting Minutes: switch test and expected lines)
 
(13 intermediate revisions by the same user not shown)
Line 118: Line 118:
This should be a valid link:
This should be a valid link:
[[Special:EmailFile]]
[[Special:EmailFile]]
== EmailRegisteredUsers ==
This should be a valid link:
[[Special:EmailRegisteredUsers]]


== External Data ==
== External Data ==
Line 128: Line 124:
;Test :{{#external_value:Located in}}
;Test :{{#external_value:Located in}}
;Expected :Europe
;Expected :Europe
== FixedHeaderTable ==
Header of table below should be fixed:
<fixedheadertable fixedcolumns="1">
{| class="wikitable"
! Header 1
! Header 2
|-
| Cell 1
| Cell 2
|-
| Cell 3
| Cell 4
|}
</fixedheadertable>


== FsLookAndFeel ==
== FsLookAndFeel ==
Line 168: Line 148:
More content
More content
<headertabs />
<headertabs />
== HeaderFooter ==
The content of [[MediaWiki:hf-footer-{{FULLPAGENAME}}]] must be shown as a footer on the current page.
<div class="toccolours mw-collapsible mw-collapsed" style="width:400px; overflow:auto;">
<div style="font-weight:bold;line-height:1.6;">
Source of [[MediaWiki:hf-footer-{{FULLPAGENAME}}]]</div>
<div class="mw-collapsible-content">
<syntaxhighlight lang="html">
<div class="card bg-dark text-white">
<div class="card-body font-weight-bold text-center">I am Footer</div>
</div>
</syntaxhighlight>
</div></div>


== ImageMap ==
== ImageMap ==
Line 242: Line 208:
Check it below:
Check it below:


USA <- is abbreviations
FHL <- is abbreviations
 
== LocalisationUpdate ==
No test was invented. The extension must be listed on [[Special:Version]].


== Lockdown ==
== Lockdown ==
Line 365: Line 328:
; Test string functions: {{#ifeq:{{#expr: 4 + 6}}|10|{{#ifeq:{{#len:Icecream }}|8|{{#len:Icecream }}|disabled}}}}
; Test string functions: {{#ifeq:{{#expr: 4 + 6}}|10|{{#ifeq:{{#len:Icecream }}|8|{{#len:Icecream }}|disabled}}}}
; Expected&#160;: {{#ifeq:{{#len:Icecream }}|8|8|disabled}}
; Expected&#160;: {{#ifeq:{{#len:Icecream }}|8|8|disabled}}
== ParserHooks ==
No test was invented. The extension must be listed on [[Special:Version]].


== Parsoid ==
== Parsoid ==
Line 417: Line 377:
[[Special:BrowseData]]
[[Special:BrowseData]]


== Semantic Internal Objects ==
== Semantic Meeting Minutes ==
{{#set_internal:Part of recipe
;Test: {{#synopsize:
|Has quantity=1
Only this line should show, with no lines after it
|Has unit=cup
|Has ingredient=flour
}}
* Expected: 1
* Actual: {{#ask:[[Part of recipe::+]][[Has ingredient::flour]][[Has unit::cup]][[Has quantity::>.5]]
|mainlabel=-
|? Has quantity=
|link=none
}}


== Semantic Meeting Minutes ==
This line should '''not''' show
[[Special:FormEdit/Meeting Minutes]] must be a valid form.
|9999
|1}}
;Expected: Only this line should show, with no lines after it


== SemanticCompoundQueries ==
== SemanticCompoundQueries ==
Line 526: Line 479:
{{#subpagecount: }}
{{#subpagecount: }}
;Expected
;Expected
0
An integer matching the number of pages at [[Special:PrefixIndex/{{FULLPAGENAME}}/]]


== SyntaxHighlight ==
== SyntaxHighlight ==
Line 553: Line 506:


== TitleBlacklist ==
== TitleBlacklist ==
;The text should follow:
* [{{SERVER}}{{SCRIPTPATH}}/api.php?action=help&modules=titleblacklist This should document the '''titleblacklist''' API]
{{int: Titleblacklist}}
 
</pre>


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


== Upload Wizard ==
== Upload Wizard ==
Line 572: Line 519:


== VEForAll ==
== VEForAll ==
No test was invented. The extension must be listed on [[Special:Version]].
== Validator ==
No test was invented. The extension must be listed on [[Special:Version]].
No test was invented. The extension must be listed on [[Special:Version]].


Line 609: Line 553:
The page source should contain:
The page source should contain:
<pre>
<pre>
<title></nowiki>Your page title<nowiki></title>
<title>Your page title</title>
</pre>
</pre>


Line 616: Line 560:
<pre>
<pre>
<meta name="keywords" content="these,are,your,keywords"/>
<meta name="keywords" content="these,are,your,keywords"/>
</pre>
There should also be a description, with
<pre>
<meta name="description" content="Your meta description"/>
<meta name="description" content="Your meta description"/>
</pre>
</pre>
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.


== Wiretap ==
== Wiretap ==
Reviewer, editor, pagecreator
921

edits