X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=70c8c0c97998125d1551a68b5e9f402483ddbcb4;hb=aee072efe2f6c93a039697fc5340d64d0c0f36b7;hp=e96535292bfe0bf9e1ed9c37ebe67ef790057e85;hpb=75afa93c3cd109e637024fe2825fe970412b6f40;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e96535292b..70c8c0c979 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -7980,8 +7980,8 @@ Handling html with a br self-closing tag

!! html/php -


-
+


+



@@ -14628,13 +14628,19 @@ Attribute test: unquoted but illegal value (hash)

!! end +# Parsoid does not serialize to empty attribute syntax, +# so wt2wt and html2wt cases are skipped !! test -Attribute test: no value +Attribute test: no value (T54330) +!! options +parsoid=wt2html,html2html !! wikitext foo -!! html -

foo +!! html/php +

foo

+!! html/parsoid +

foo

!! end !! test @@ -15165,7 +15171,7 @@ array ( 'width' => '200', 'height' => '100', 'depth' => '50', - 'square' => 'square', + 'square' => '', ) @@ -15213,7 +15219,7 @@ array ( 'width' => '200', 'height' => '100', 'depth' => '50', - 'square' => 'square', + 'square' => '', )

other stuff @@ -15360,7 +15366,7 @@ Sanitizer: Validating that and work, but only for Microdata !! html -

+

<meta http-equiv="refresh" content="5"> @@ -18293,6 +18299,61 @@ Raw: -{R|zh:China;zh-tw:Taiwan}-

!! end +!! test +Strings evaluating false shouldn't be ignored by Language converter (T51072) +!! options +language=zh variant=zh-cn +!! input +-{zh-cn:0;zh-sg:1;zh-tw:2;zh-hk:3}- +!! result +

0 +

+!! end + +!! test +Conversion rules from [numeric-only string] to [something else] (T48634) +!! options +language=zh variant=zh-cn +!! input +-{H|0=>zh-cn:B}--{H|0=>zh-cn:C;0=>zh-cn:D}--{H|0=>zh-hans:A}-012345-{A|zh-tw:0;zh-cn:E;}-012345 +!! result +

D12345EE12345 +

+!! end + +!! test +Bidirectional converter rule entries with an empty value should be ignored (T53551) +!! options +language=zh variant=zh-cn +!! input +-{H|zh-cn:foo;zh-tw:;}-foobar +!! result +

foobar +

+!! end + +!! test +Unidirectional converter rule entries with an empty "from" string should be ignored (T53551) +!! options +language=zh variant=zh-cn +!! input +-{H|=>zh-cn:foo;}-foobar +!! result +

foobar +

+!! end + +!! test +Empty converter rule entries shouldn't be inserted into the conversion table (T53551) +!! options +language=zh variant=zh-cn +!! input +-{H|}-foobar +!! result +

foobar +

+!! end + !! test Nested using of manual convert syntax !! options @@ -19224,7 +19285,7 @@ Page status indicators: Weird syntaxes that are okay showindicators !! wikitext - + !! html empty= name=