From 81a51365ec647ecfeeadbdea7b94a8f9bb7b00e3 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 15 Feb 2010 23:54:02 +0000 Subject: [PATCH] Provide a few more tests for bug #22501 --- maintenance/parserTests.txt | 70 ++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index aa59a2cd22..c68c10a305 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -7794,9 +7794,44 @@ this is not the the title !! end !! test -Verify that displaytitle works (bug #22501) +Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false !! options showtitle +title=[[Screen]] +!! config +wgRestrictDisplayTitle=false +!! input +this is not the the title +{{DISPLAYTITLE:whatever}} +!! result +whatever +

this is not the the title +

+!! end + +!! test +Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch +!! options +showtitle +title=[[Screen]] +!! config +wgRestrictDisplayTitle=true +!! input +this is not the the title +{{DISPLAYTITLE:whatever}} +!! result + +

this is not the the title +

+!! end + +!! test +Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching +!! options +showtitle +title=[[Screen]] +!! config +wgRestrictDisplayTitle=true !! input this is not the the title {{DISPLAYTITLE:screen}} @@ -7806,6 +7841,39 @@ screen

!! end +!! test +Verify that displaytitle works (bug #22501) AllowDisplayTitle=false +!! options +showtitle +title=[[Screen]] +!! config +wgAllowDisplayTitle=false +!! input +this is not the the title +{{DISPLAYTITLE:screen}} +!! result + +

this is not the the title +Template:DISPLAYTITLE:screen +

+!! end + +!! test +Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE +!! options +showtitle +title=[[Screen]] +!! config +wgAllowDisplayTitle=false +!! input +this is not the the title +!! result + +

this is not the the title +

+!! end + + TODO: more images more tables -- 2.20.1