From 0f4eebf7aa3977f9f5b7c1157ef2ac3ea3c7aabe Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Mon, 1 Oct 2012 23:30:20 -0500 Subject: [PATCH] Additional indent-pre and template interaction tests. Change-Id: I445247130dea266beb8b94e2fa1f039f1886446a --- tests/parser/parserTests.txt | 79 +++++++++++++++++++++++++----------- 1 file changed, 56 insertions(+), 23 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 9dc96b2cff..66ef0d9cb0 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -65,6 +65,12 @@ Template:inner list * item 1 !! endarticle +!! article +Template:echo +!! text +{{{1}}} +!! endarticle + ### ### Basic tests ### @@ -868,6 +874,56 @@ Bug 6200: Preformatted in

!! end +!!test +Templates: Pre: 1a. Templates that break a line should suppress
+!!input
+ {{echo|}}
+!!result
+
+!!end
+
+!!test
+Templates: Pre: 1b. Templates that break a line should suppress 
+!!input
+ {{echo|
+foo}}
+!!result
+

foo +

+!!end + +!! test +Templates: Pre: 1c: Wrapping should be based one expanded content +!! input + {{echo|a +b}} +!!result +
a
+
+

b +

+!!end + +!! test +Templates: Pre: 1d: Wrapping should be based one expanded content +!! input + {{echo|a +b +c + d +e +}} +!!result +
a
+
+

b +c +

+
d
+
+

e +

+!!end ### ### Definition lists @@ -4220,11 +4276,6 @@ Templates: Template Name/Arg clash: 3. Use of named param with empty input ### ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged ### -!! article -Template:echo -!! text -{{{1}}} -!! endarticle !!test Templates: 1. Simple use @@ -4515,24 +4566,6 @@ Templates: Tables: 4f. Generating a single tag of a HTML table !!end -!!test -Templates: Pre: 1a. Templates that break a line should suppress
-!!input
- {{echo|}}
-!!result
-
-!!end
-
-!!test
-Templates: Pre: 1b. Templates that break a line should suppress 
-!!input
- {{echo|
-foo}}
-!!result
-

foo -

-!!end - !!test Parser Functions: 1. Simple example !!input -- 2.20.1