r62558 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62557‎ | r62558 | r62559 >
Date:23:54, 15 February 2010
Author:mah
Status:ok
Tags:
Comment:
Provide a few more tests for bug #22501
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -7794,11 +7794,46 @@
77957795 !! end
77967796
77977797 !! test
7798 -Verify that displaytitle works (bug #22501)
 7798+Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
77997799 !! options
78007800 showtitle
 7801+title=[[Screen]]
 7802+!! config
 7803+wgRestrictDisplayTitle=false
78017804 !! input
78027805 this is not the the title
 7806+{{DISPLAYTITLE:whatever}}
 7807+!! result
 7808+whatever
 7809+<p>this is not the the title
 7810+</p>
 7811+!! end
 7812+
 7813+!! test
 7814+Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
 7815+!! options
 7816+showtitle
 7817+title=[[Screen]]
 7818+!! config
 7819+wgRestrictDisplayTitle=true
 7820+!! input
 7821+this is not the the title
 7822+{{DISPLAYTITLE:whatever}}
 7823+!! result
 7824+
 7825+<p>this is not the the title
 7826+</p>
 7827+!! end
 7828+
 7829+!! test
 7830+Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
 7831+!! options
 7832+showtitle
 7833+title=[[Screen]]
 7834+!! config
 7835+wgRestrictDisplayTitle=true
 7836+!! input
 7837+this is not the the title
78037838 {{DISPLAYTITLE:screen}}
78047839 !! result
78057840 screen
@@ -7806,6 +7841,39 @@
78077842 </p>
78087843 !! end
78097844
 7845+!! test
 7846+Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
 7847+!! options
 7848+showtitle
 7849+title=[[Screen]]
 7850+!! config
 7851+wgAllowDisplayTitle=false
 7852+!! input
 7853+this is not the the title
 7854+{{DISPLAYTITLE:screen}}
 7855+!! result
 7856+
 7857+<p>this is not the the title
 7858+<a href="https://www.mediawiki.org/index.php?title=Template:DISPLAYTITLE:screen&amp;action=edit&amp;redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
 7859+</p>
 7860+!! end
 7861+
 7862+!! test
 7863+Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
 7864+!! options
 7865+showtitle
 7866+title=[[Screen]]
 7867+!! config
 7868+wgAllowDisplayTitle=false
 7869+!! input
 7870+this is not the the title
 7871+!! result
 7872+
 7873+<p>this is not the the title
 7874+</p>
 7875+!! end
 7876+
 7877+
78107878 TODO:
78117879 more images
78127880 more tables

Status & tagging log