X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=97bff348ee4a689d37c9bd70c8970082fd9b5e11;hb=66216b12ee2c22468cce8c2f4751696b78fa5d74;hp=812769558ffa4fa45dbb8f5d14640d93eceb8ee6;hpb=95b63ec8a13a6e9ae1e83fb78215d3ed4830964b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 812769558f..97bff348ee 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -5623,7 +5623,7 @@ Examples from RFC 2732, section 2: !! html/php
http://[2404:130:0:1000::187:2]/index.php -
Examples from RFC 2373, section 2.2: +
Examples from RFC 2373, section 2.2:
Examples from RFC 2732, section 2: +
Examples from RFC 2732, section 2:
http://[2404:130:0:1000::187:2]/index.php
-Examples from RFC 2373, section 2.2:
+Examples from RFC 2373, section 2.2:
Examples from RFC 2732, section 2:
+Examples from RFC 2732, section 2:
test -
Examples from RFC 2373, section 2.2: +
Examples from RFC 2373, section 2.2:
Examples from RFC 2732, section 2: +
Examples from RFC 2732, section 2:
Examples from RFC 2373, section 2.2:
+Examples from RFC 2373, section 2.2:
Examples from RFC 2732, section 2:
+Examples from RFC 2732, section 2:
[[ +
+!! end + !! test 1. Interaction of linktrail and template encapsulation !! wikitext @@ -10734,10 +10749,10 @@ Magic links: RFC (T2479) !! wikitext RFC 822 !! html/php -RFC 822 +
!! html/parsoid - + !! end !! test @@ -10745,10 +10760,10 @@ Magic links: RFC (T67278) !! wikitext This is RFC 822 but thisRFC 822 is not RFC 822linked. !! html/php -This is RFC 822 but thisRFC 822 is not RFC 822linked. +
This is RFC 822 but thisRFC 822 is not RFC 822linked.
!! html/parsoid -This is RFC 822 but thisRFC 822 is not RFC 822linked.
+This is RFC 822 but thisRFC 822 is not RFC 822linked.
!! end !! test @@ -10758,12 +10773,12 @@ RFC 822 RFC 822 !! html/php -RFC 822 +
RFC 822 RFC 822
!! html/parsoid -RFC Â Â Â Â Â 822 RFC 822
!! end @@ -10859,14 +10874,14 @@ Magic links: use appropriate serialization for "almost" magic links. !! wikitext X[[Special:BookSources/0978739256|foo]] -X[//tools.ietf.org/html/rfc1234 foo] +X[https://tools.ietf.org/html/rfc1234 foo] !! html/phpXfoo -
Xfoo +
Xfoo
!! html/parsoidXfoo
-Xfoo
+Xfoo
!! end !! test @@ -14688,10 +14703,10 @@ T3887: A RFC with a thumbnail !! wikitext [[File:Foobar.jpg|thumb|This is RFC 12354]] !! html/php -2013 +
+!! html/parsoid +2013
+!! end + !! test Language converter: output gets cut off unexpectedly (T7757) !! options @@ -20387,7 +20415,7 @@ Double RFC !! wikitext RFC RFC 1234 !! html -RFC RFC 1234 +
RFC RFC 1234
!! end @@ -20405,10 +20433,10 @@ RFC code coverage !! wikitext RFC 983 987 !! html -RFC 983 987 +
RFC 983 987
!! html+tidy -RFC 983 987
+RFC 983 987
!! end !! test @@ -23420,26 +23448,26 @@ parsoid={ !! end -## The unconventional output is the result of `usePHPPreProcessor` being -## disabled in parserTests.js. This test is mainly just to show<section begin="2011-05-16" /> -<section end="2014-04-10 (MW 1.23wmf22)" />
++ + +
!! end #--------- Test stripping of empty nodes in template content ---------- -!!test + +!! test Empty LI and TR nodes should be stripped from template content -!!wikitext +!! wikitext {{EmptyLITest}} {{EmptyTRTest}} -!!html/parsoid +!! html/parsoidfoo |
bar |
RFC 123?foo -RFC 123&foo --RFC 123- +
RFC 123?foo +RFC 123&foo +-RFC 123-
!! wikitext RFC 123?foo RFC 123&foo -RFC 123- !! html/php -RFC 123?foo -RFC 123&foo --RFC 123- +
RFC 123?foo +RFC 123&foo +-RFC 123-
!! end @@ -25911,6 +25939,41 @@ parsoid=html2wt [[Foo]] !! end +!! test +Parsoid should accept interwiki shortcuts +!! options +parsoid=html2wt +!! html/parsoid + + +!! wikitext +[[:fr:Foo|Foo]] +[[:fr:Foo|Foo]] +[[:fr:Foo|Foo]] + +[[:fr:Foo|Foo]] +[[:fr:Foo|Foo]] +[[:fr:Foo|Foo]] +!! end + +!! test +Parsoid should not accept invalid interwiki shortcuts +!! options +parsoid=html2wt +!! html/parsoid + +!! wikitext +[news:Foo Foo] +[news:Foo Foo] +[news:Foo Foo] +!! end + # See T93839 !! test New wikilinks should be serialized properly @@ -26832,9 +26895,9 @@ Edited RFC links not serializable as RFC links should serialize as extlinks !! options parsoid=html2wt !! html/parsoid -New RFC +New RFC !! wikitext -[//tools.ietf.org/html/rfc123 New RFC] +[https://tools.ietf.org/html/rfc123 New RFC] !! end !! test @@ -26978,7 +27041,7 @@ Magic links inside image captions (autolinked)[[#%3Cscript%3Ealert(1)%3C/script%3E|
!! end + +!! test +Validating that