FamilySearch Wiki:Extension tests: Difference between revisions

m
→‎Semantic Meeting Minutes: switch test and expected lines
(→‎PDF Handler: use a file that exists)
m (→‎Semantic Meeting Minutes: switch test and expected lines)
 
(16 intermediate revisions by the same user not shown)
Line 100: Line 100:


== DismissableSiteNotice ==
== DismissableSiteNotice ==
This should have a number:
The <code>ext.dismissableSiteNotice</code> ResourceLoader module should be registered; in the developer console running <code>mw.loader.getState('ext.dismissableSiteNotice');</code> should return a string (rather than <code>null</code>).
* [[MediaWiki:Sitenotice_id]]


== DisplayTitle==
== DisplayTitle==
Line 119: 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 129: Line 124:
;Test&#160;:{{#external_value:Located in}}
;Test&#160;:{{#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 169: 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 243: 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 366: 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 418: 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 521: Line 473:


== SpamBlacklist ==
== SpamBlacklist ==
Once this is added to [[Mediawiki:Spam-blacklist]]:
This should display the spam blacklist log: [{{fullurl:Special:Log|type=spamblacklist}} spamblacklist].
:<code>\bexample\.com\b</code>
this should be blocked:
:[http://example.com example.com]


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


== SyntaxHighlight ==
== SyntaxHighlight ==
Line 557: 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 576: 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 599: Line 539:
;Expected
;Expected
:Widget
:Widget
=== Widget:Audio ===
An audio player should be here:
{{#widget:Audio
|url=https://www.soundhelix.com/examples/mp3/SoundHelix-Song-8.mp3
}}
=== Widget:Disqus ===
{{#widget:DISQUS|PUT_YOUR_DISCUS_ID}}
=== Widget:Google Calendar ===
{{#widget:Google Calendar
|id=p2m2av9dhrh4n1ub7jlsc68s7o@group.calendar.google.com
|color=2952A3
|id=usa@holiday.calendar.google.com
|color=B1440E
|title=NYCResistor, US Holidays
}}
=== Widget:Html5media ===
A video should be visible:
{{#widget:Html5media
|url=http://pornel.net/Performance.ogg
|width=200
|height=150
}}
=== Widget:Iframe ===
{{#widget:Iframe
|url={{fullurl:Main Page}}
}}
=== Widget:SoundCloud ===
A SoundCloud embed should be here:
{{#widget:SoundCloud
|id=26963349
}}
=== Widget:Twitter ===
A Twitter feed should be below:
<div style="height:200px; overflow: scroll;">
{{#widget:Twitter timeline|id=TwitterDev}}
</div>
=== Widget:Twitter Search ===
{{#widget:Twitter Search
|query=showslow
|title=ShowSlow
|caption=what people say about ShowSlow
}}
=== Widget:Vimeo ===
{{#widget:Vimeo|id=8758454}}
=== Widget:YouTube ===
A YouTube video should be visible:
{{#widget:Youtube
|id=DWef69ItVrU
|width=200
|height=150
}}


== WikiEditor ==
== WikiEditor ==
Line 674: 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 681: 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