X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fparser%2FparserTests.txt;h=6477356c8a8b6bf18fa3812e65fcd0bd421d0ea8;hb=005802b82b106605a928394c859248c2f47f93bb;hp=be6e3a89965a40ed398ee9976e7893ca60b5bcc5;hpb=32ed9feb39c5acfadf33d34b66cb70bd2ff01d16;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index be6e3a8996..6477356c8a 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -32,6 +32,7 @@ # local format section links in edit comment text as local links # notoc disable table of contents # thumbsize=NNN set the default thumb size to NNNpx for this test +# wrap include the normal wrapper
(since 1.30) # # You can also set the following parser properties via test options: # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel, @@ -8015,10 +8016,10 @@ title=[[Bug462]] !! wikitext [[Bug462]] [[Bug462]] !! html/php -

Bug462 Bug462 +

Bug462 Bug462

!! html/php+tidy -

Bug462 Bug462

+

Bug462 Bug462

!! html/parsoid

Bug462 Bug462

!! end @@ -8047,7 +8048,7 @@ title=[[0]] !! wikitext [[0]] !! html -

0 +

0

!!end @@ -8503,7 +8504,7 @@ parsoid=wt2html,wt2wt,html2html !! wikitext [[local:Main Page]] !! html/php -

local:Main Page +

local:Main Page

!! html/parsoid

local:Main Page

@@ -9962,9 +9963,10 @@ Magic Words LOCAL (UTC) Magic Word: {{FULLPAGENAME}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{FULLPAGENAME}} -!! html +!! html/*

User:Ævar Arnfjörð Bjarmason

!! end @@ -9973,9 +9975,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{FULLPAGENAMEE}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{FULLPAGENAMEE}} -!! html +!! html/*

User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason

!! end @@ -9984,9 +9987,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{TALKSPACE}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{TALKSPACE}} -!! html +!! html/*

User talk

!! end @@ -9995,9 +9999,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{TALKSPACE}}, same namespace !! options title=[[User talk:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{TALKSPACE}} -!! html +!! html/*

User talk

!! end @@ -10006,9 +10011,10 @@ title=[[User talk:Ævar Arnfjörð Bjarmason]] Magic Word: {{TALKSPACE}}, main namespace !! options title=[[Parser Test]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{TALKSPACE}} -!! html +!! html/*

Talk

!! end @@ -10017,9 +10023,10 @@ title=[[Parser Test]] Magic Word: {{TALKSPACEE}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{TALKSPACEE}} -!! html +!! html/*

User_talk

!! end @@ -10028,9 +10035,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{SUBJECTSPACE}} !! options title=[[User talk:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBJECTSPACE}} -!! html +!! html/*

User

!! end @@ -10039,9 +10047,10 @@ title=[[User talk:Ævar Arnfjörð Bjarmason]] Magic Word: {{SUBJECTSPACE}}, same namespace !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBJECTSPACE}} -!! html +!! html/*

User

!! end @@ -10050,9 +10059,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{SUBJECTSPACE}}, main namespace !! options title=[[Parser Test]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBJECTSPACE}} -!! html +!! html/* !! end @@ -10060,9 +10070,10 @@ title=[[Parser Test]] Magic Word: {{SUBJECTSPACEE}} !! options title=[[User talk:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBJECTSPACEE}} -!! html +!! html/*

User

!! end @@ -10071,9 +10082,10 @@ title=[[User talk:Ævar Arnfjörð Bjarmason]] Magic Word: {{NAMESPACE}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{NAMESPACE}} -!! html +!! html/*

User

!! end @@ -10082,9 +10094,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{NAMESPACEE}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{NAMESPACEE}} -!! html +!! html/*

User

!! end @@ -10093,9 +10106,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{NAMESPACENUMBER}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{NAMESPACENUMBER}} -!! html +!! html/*

2

!! end @@ -10104,9 +10118,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{SUBPAGENAME}} !! options title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBPAGENAME}} -!! html +!! html/*

sub ö

!! end @@ -10115,9 +10130,10 @@ title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage Magic Word: {{SUBPAGENAMEE}} !! options title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBPAGENAMEE}} -!! html +!! html/*

sub_%C3%B6

!! end @@ -10126,9 +10142,10 @@ title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage Magic Word: {{ROOTPAGENAME}} !! options title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{ROOTPAGENAME}} -!! html +!! html/*

Ævar Arnfjörð Bjarmason

!! end @@ -10137,9 +10154,10 @@ title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage Magic Word: {{ROOTPAGENAMEE}} !! options title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{ROOTPAGENAMEE}} -!! html +!! html/*

%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason

!! end @@ -10148,9 +10166,10 @@ title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage Magic Word: {{BASEPAGENAME}} !! options title=[[Ævar Arnfjörð Bjarmason/sub]] subpage +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{BASEPAGENAME}} -!! html +!! html/*

Ævar Arnfjörð Bjarmason

!! end @@ -10159,9 +10178,10 @@ title=[[Ævar Arnfjörð Bjarmason/sub]] subpage Magic Word: {{BASEPAGENAMEE}} !! options title=[[Ævar Arnfjörð Bjarmason/sub]] subpage +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{BASEPAGENAMEE}} -!! html +!! html/*

%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason

!! end @@ -10170,9 +10190,10 @@ title=[[Ævar Arnfjörð Bjarmason/sub]] subpage Magic Word: {{TALKPAGENAME}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{TALKPAGENAME}} -!! html +!! html/*

User talk:Ævar Arnfjörð Bjarmason

!! end @@ -10181,9 +10202,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{TALKPAGENAMEE}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{TALKPAGENAMEE}} -!! html +!! html/*

User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason

!! end @@ -10192,9 +10214,10 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{SUBJECTPAGENAME}} !! options title=[[User talk:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBJECTPAGENAME}} -!! html +!! html/*

User:Ævar Arnfjörð Bjarmason

!! end @@ -10203,18 +10226,21 @@ title=[[User talk:Ævar Arnfjörð Bjarmason]] Magic Word: {{SUBJECTPAGENAMEE}} !! options title=[[User talk:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBJECTPAGENAMEE}} -!! html +!! html/*

User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason

!! end !! test Magic Word: {{NUMBEROFFILES}} +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{NUMBEROFFILES}} -!! html +!! html/*

7

!! end @@ -10223,9 +10249,10 @@ Magic Word: {{NUMBEROFFILES}} Magic Word: {{PAGENAME}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGENAME}} -!! html +!! html/*

Ævar Arnfjörð Bjarmason

!! end @@ -10234,6 +10261,7 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{PAGENAME}} with metacharacters !! options title=[['foo & bar = baz']] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext ''{{PAGENAME}}'' !! html/php @@ -10247,6 +10275,7 @@ title=[['foo & bar = baz']] Magic Word: {{PAGENAME}} with metacharacters (T28781) !! options title=[[*RFC 1234 http://example.com/]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGENAME}} !! html/php @@ -10260,9 +10289,10 @@ title=[[*RFC 1234 http://example.com/]] Magic Word: {{PAGENAMEE}} !! options title=[[User:Ævar Arnfjörð Bjarmason]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGENAMEE}} -!! html +!! html/*

%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason

!! end @@ -10271,6 +10301,7 @@ title=[[User:Ævar Arnfjörð Bjarmason]] Magic Word: {{PAGENAMEE}} with metacharacters (T28781) !! options title=[[*RFC 1234 http://example.com/]] +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGENAMEE}} !! html/php @@ -10282,53 +10313,65 @@ title=[[*RFC 1234 http://example.com/]] !! test Magic Word: {{REVISIONID}} +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{REVISIONID}} -!! html +!! html/*

1337

!! end !! test Magic Word: {{SCRIPTPATH}} +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SCRIPTPATH}} -!! html +!! html/* !! end !! test Magic Word: {{STYLEPATH}} +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{STYLEPATH}} -!! html +!! html/*

/skins

!! end !! test Magic Word: {{SERVER}} +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SERVER}} -!! html +!! html/*

http://example.org

!! end !! test Magic Word: {{SERVERNAME}} +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SERVERNAME}} -!! html +!! html/*

example.org

!! end !! test Magic Word: {{SITENAME}} +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SITENAME}} -!! html +!! html/*

MediaWiki

!! end @@ -10337,18 +10380,21 @@ Magic Word: {{SITENAME}} Magic Word: {{PAGELANGUAGE}} !! options language=fr +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGELANGUAGE}} -!! html +!! html/*

fr

!! end !! test Magic Word: {{PAGELANGUAGE}} on a page with no explicitly set language +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGELANGUAGE}} -!! html +!! html/*

en

!! end @@ -13745,7 +13791,7 @@ Manually-specified thumbnail image !! options thumbsize=220 !! wikitext -[[File:Foobar.jpg|thumb=Thumb.png|Title]] +[[File:Foobar.jpg|thumbnail=Thumb.png|Title]] !! html/php
Title
@@ -15413,7 +15459,7 @@ Section headings with TOC Some text ===Another headline=== !! html -

Contents

+

Contents

  • 1 Headline 1
      @@ -15456,7 +15502,7 @@ __FORCETOC__ == Headline 2 == == Headline == !! html/php -

      Contents

      +

      Contents

      • 1 Headline 2
      • 2 Headline
      • @@ -15487,7 +15533,7 @@ Handling of sections up to level 6 and beyond ========= Level 9 Heading========= ========== Level 10 Heading========== !! html -

        Contents

        +

        Contents

        • 1 Level 1 Heading
            @@ -15540,7 +15586,7 @@ TOC regression (T11764) == title 2 == === title 2.1 === !! html -

            Contents

            +

            Contents

            • 1 title 1
                @@ -15575,7 +15621,7 @@ TOC for heading containing (T96153) __FORCETOC__ ==New title== !! html/php -

                Contents

                +

                Contents

                @@ -15597,7 +15643,7 @@ wgMaxTocLevel=3 == title 2 == === title 2.1 === !! html -

                Contents

                +

                Contents

                • 1 title 1
                    @@ -15633,7 +15679,7 @@ wgMaxTocLevel=3 ====Section 1.1.1.1==== ==Section 2== !! html -

                    Contents

                    +

                    Contents

                    • 1 Section 1
                        @@ -15726,7 +15772,7 @@ __TOC__ === title 1.1 === == title 2 == !! html -

                        Contents

                        +

                        Contents

                        • 1 title 1
                            @@ -15793,7 +15839,7 @@ section 5 !! html

                            The tooltips shall not show entities to the user (ie. be double escaped)

                            -

                            Contents

                            +

                            Contents

                            • 1 text > text
                            • 2 text < text
                            • @@ -15852,7 +15898,7 @@ section 6 !! html

                              Id should not contain + for spaces

                              -

                              Contents

                              +

                              Contents

                              • 1 Space between Text
                              • 2 Space-Entity between Text
                              • @@ -15898,7 +15944,7 @@ Headers with excess '=' characters =''italic'' heading== ==''italic'' heading= !! html -

                                Contents

                                +

                                Contents

                                • 1 foo=
                                • 2 =foo
                                • @@ -15928,7 +15974,7 @@ HTML headers vs TOC (T25393) == Header 2.2 == __NOEDITSECTION__ !! html -

                                  Contents

                                  +

                                  Contents

                                  • 1 Header 1
                                      @@ -17706,7 +17752,7 @@ Fuzz testing: Parser14 http://__TOC__ !! html

                                      onmouseover=[edit]

                                      -http://

                                      Contents

                                      +http://

                                      Contents

                                      @@ -17717,7 +17763,7 @@ http://

                                      Contents

                                      onmouseover=[edit]

                                      http://

                                      -
                                      +

                                      Contents

                                        @@ -19069,6 +19115,27 @@ title=[[Parser test]] !! end ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included. +!! test +Gallery with valid attributes +!! wikitext + +File:File:Foobar.jpg + +!! html/php + + +!! html/parsoid + +!! end + ## Parsoid thinks the "centre" here is a property, not a caption. !! test Gallery @@ -19613,6 +19680,56 @@ File:Test.png !! end +!! test +Gallery with class and style attributes +!! options +parsoid={ + "nativeGallery": true +} +!! wikitext + +File:Foobar.jpg + +!! html/php + + +!! html/parsoid + +!! end + +!! test +Gallery in slideshow mode +!! options +parsoid={ + "nativeGallery": true +} +!! wikitext + +File:Foobar.jpg + +!! html/php + + +!! html/parsoid + +!! end + !! test HTML Hex character encoding (spells the word "JavaScript") !! options @@ -20129,7 +20246,7 @@ Out-of-order TOC heading levels =====5===== ==2== !! html -

                                        Contents

                                        +

                                        Contents

                                        • 1 2
                                            @@ -20327,7 +20444,7 @@ title=[[Dunav]] language=sr !! wikitext Both [[Dunav]] and [[Дунав]] are names for this river. !! html -

                                            Both Dunav and Дунав are names for this river. +

                                            Both Dunav and Дунав are names for this river.

                                            !!end @@ -20344,7 +20461,7 @@ title=[[Duna]] language=sr !! wikitext [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links. !! html -

                                            Дуна is not a self-link while Duna and Dуна are still self-links. +

                                            Дуна is not a self-link while Duna and Dуна are still self-links.

                                            !! end @@ -20355,7 +20472,7 @@ title=[[Duna]] language=sr !! wikitext [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links. !! html -

                                            Dуна is a self-link while Dunа#Foo and Dуна#Foo are not self-links. +

                                            Dуна is a self-link while Dunа#Foo and Dуна#Foo are not self-links.

                                            !! end @@ -21793,7 +21910,7 @@ showindicators !! wikitext -!! html +!! html/php

                                            Error: Page status indicators' name attribute must not be empty. Error: Page status indicators' name attribute must not be empty.

                                            @@ -21806,7 +21923,7 @@ showindicators !! wikitext -!! html +!! html/php empty= name=


                                            @@ -21833,7 +21950,7 @@ showindicators Two paragraphs -!! html +!! html/php 01=hello world 02=Main Page 03=Foobar.jpg @@ -22111,7 +22228,7 @@ title=[[Main Page]] __TOC__ == ''Lost'' episodes == !! html -

                                            Contents

                                            +

                                            Contents

                                            @@ -22129,7 +22246,7 @@ title=[[Main Page]] __TOC__ == '''should be bold''' then normal text == !! html -

                                            Contents

                                            +

                                            Contents

                                            @@ -22147,7 +22264,7 @@ title=[[Main Page]] __TOC__ == Image [[Image:foobar.jpg]] == !! html -

                                            Contents

                                            +

                                            Contents

                                            @@ -22165,7 +22282,7 @@ title=[[Main Page]] __TOC__ ==
                                            Quote
                                            == !! html -

                                            Contents

                                            +

                                            Contents

                                            @@ -22176,7 +22293,7 @@ __TOC__ !! html+tidy

                                            -
                                            +

                                            Contents

                                              @@ -22201,7 +22318,7 @@ __TOC__ Hanc marginis exiguitas non caperet. QED !! html -

                                              Contents

                                              +

                                              Contents

                                              @@ -22221,7 +22338,7 @@ __TOC__ == Foo
                                              Bar
                                              == !! html -

                                              Contents

                                              +

                                              Contents

                                              • 1 Foo Bar
                                              • 2 Foo Bar
                                              • @@ -22234,7 +22351,7 @@ __TOC__ !! html+tidy

                                                -
                                                +

                                                Contents

                                                  @@ -22263,7 +22380,7 @@ __TOC__ == Evilbye == !! html/php -

                                                  Contents

                                                  +

                                                  Contents

                                                  • 1 Hello
                                                  • 2 b">Evilbye
                                                  • @@ -22294,7 +22411,7 @@ __TOC__ == Attributes after dir on these span tags must be deleted from the TOC == !! html -

                                                    Contents

                                                    +

                                                    Contents

                                                    • 1 C++
                                                    • 2 זבנג!
                                                    • @@ -22318,7 +22435,7 @@ T74884: bdi element in ToC __TOC__ == test == !! html -

                                                      Contents

                                                      +

                                                      Contents

                                                      @@ -22334,7 +22451,7 @@ T35715: s/strike element in ToC __TOC__ == test test test == !! html -

                                                      Contents

                                                      +

                                                      Contents

                                                      @@ -22353,7 +22470,7 @@ Empty

                                                      tag in TOC, removed by Sanitizer (T92892) __TOC__ == x == !! html -

                                                      Contents

                                                      +

                                                      Contents

                                                      @@ -22364,7 +22481,7 @@ __TOC__ !! html+tidy

                                                      -
                                                      +

                                                      Contents

                                                        @@ -22746,14 +22863,12 @@ parsoid={ ## recognized as an extension tag w/o a native handler. !! test LST Sections: Newfangled approach -!! options -parsoid={ "suppressErrors": true } !! wikitext
                                                        !! html/parsoid -

                                                        <section begin="2011-05-16" /> -<section end="2014-04-10 (MW 1.23wmf22)" />

                                                        +

                                                        <section begin="2011-05-16" /> +<section end="2014-04-10 (MW 1.23wmf22)" />

                                                        !! end #--------- Test stripping of empty nodes in template content ---------- @@ -23780,7 +23895,8 @@ Links 4. ExtLinks: Escapes needed parsoid=html2wt !! html/parsoid

                                                        [google] -google]

                                                        +google] +goog] le

                                                        [http://google.com]

                                                        [http://google.com google]

                                                        [http://google.com]

                                                        @@ -23788,6 +23904,7 @@ parsoid=html2wt !! wikitext [http://google.com [google]] [http://google.com google]] +[http://google.com goog] le] [http://google.com] @@ -23799,6 +23916,7 @@ parsoid=html2wt !! html/php

                                                        [google] google] +goog] le

                                                        [http://google.com]

                                                        [http://google.com google]

                                                        [http://google.com] @@ -24142,7 +24260,7 @@ parsoid=html2wt !! test 4. No escaping needed !! options -options=html2wt +parsoid=html2wt !! html/parsoid

                                                        'bar' 'bar' @@ -24279,7 +24397,7 @@ parsoid=html2wt !! test 4. Leading whitespace in indent-pre suppressing contexts should not be escaped !! options -options=html2wt +parsoid=html2wt !! html/parsoid

                                                        caption
                                                        !! wikitext @@ -26633,6 +26751,20 @@ parsoid= { # Tests spec'ing wikitext serialization norms | # -------------------------------------------- +!! test +Serialize multi-line indent-pre starting with wikitext syntax +!! options +parsoid=html2wt +!! html/parsoid +
                                                        * 1
                                                        +** 2
                                                        +* 3
                                                        +!! wikitext + * 1 + ** 2 + * 3 +!! end + !! test 1. Categories should always be serialized on their own line !! options @@ -27364,6 +27496,20 @@ d |} !! end +!! test +Anchor without href scenarios +!! options +parsoid={ "modes": ["html2wt"], "suppressErrors": true } +!! html/parsoid + +dice + +!! wikitext + +dice + +!! end + # ----------------------------------------------------------------- # End of section for Parsoid-only html2wt tests for serialization # of new content