X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=e62eb80f1171e096aa5d23acf5bd9ef9f33165de;hb=31a52f9e3d49d452f4aef95491de7ad75ed4ccc3;hp=3a15ed5a3b4f7ebb21546771ba3aef0f8c34e68b;hpb=dd99a81648687ef209bfa6871efb439e28e25481;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 3a15ed5a3b..e62eb80f11 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -71,6 +71,24 @@ Template:echo {{{1}}} !! endarticle +!! article +Template:echo_with_span +!! text +{{{1}}} +!! endarticle + +!! article +Template:echo_with_div +!! text +
bar +
+!!end !!article Template:paramtest2 @@ -4326,7 +4352,7 @@ section=1 ###abcde +
+!!end + +!!test +Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span) +(PHP parser generates misnested html) +!! options +disabled +!!input +{{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}} +!!result +abcde
+!!end + +!!test +Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div) +(PHP parser generates misnested html) +!! options +disabled +!!input +{{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}} +!!result +Blabla|blabla.
@@ -8831,14 +8941,14 @@ File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt !! resultcaption
@@ -11054,7 +11164,7 @@ File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org !! resultcaption
@@ -11073,7 +11183,7 @@ File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascri !! resultcaption
@@ -11130,6 +11240,24 @@ HttP://MediaWiki.Org/ !! end +### +### Parsoids-specific tests +### Parsoid-PHP parser incompatibilities +### +!!test +1. SOL-sensitive wikitext tokens as template-args +!!options +disabled +!!input +{{echo|*a}} +{{echo|#a}} +{{echo|:a}} +!!result +*a +#a +:a +
+!!end TODO: more images