From: Arlo Breault Date: Mon, 12 Jun 2017 19:39:42 +0000 (-0400) Subject: Sync up with Parsoid parserTests.txt X-Git-Tag: 1.31.0-rc.0~2998^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=a0e6bc14b6df874869462ccd407d8d97b2ca5e8d;p=lhc%2Fweb%2Fwiklou.git Sync up with Parsoid parserTests.txt This now aligns with Parsoid commit 108eed81b3eb78b77ade5ba5daac71fb43fff6de Change-Id: Ib2b31f008adaf16866de16ef963bc58d6cabb088 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 69fee303ec..0247dd714c 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8301,6 +8301,21 @@ subpage

b

!! end +!! test +Serialization of purely hash wikilink +!! options +title=[[User:Test/123]] +subpage +parsoid=html2wt +!! html/parsoid +

[[

+!! wikitext +[[#a|[[]] +!! html/php +

[[ +

+!! end + !! test 1. Interaction of linktrail and template encapsulation !! wikitext @@ -17895,6 +17910,19 @@ Sanitizer: Validating that and work, but only for Microdata !! end +!! test +Sanitizer: Strip comments from CSS attributes +!! options +parsoid=wt2html,wt2wt +!! wikitext +2013 +!! html/php +

2013 +

+!! html/parsoid +

2013

+!! end + !! test Language converter: output gets cut off unexpectedly (T7757) !! options @@ -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
is -## recognized as an extension tag w/o a native handler. !! test LST Sections: Newfangled approach !! wikitext
!! html/parsoid -

<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/parsoid
  • a
  • b
  • @@ -23454,11 +23482,11 @@ Empty LI and TR nodes should be stripped from template content -!!end +!! end -!!test +!! test Empty LI and TR nodes should not be stripped from top-level content -!!wikitext +!! wikitext * a * * b @@ -23467,7 +23495,7 @@ Empty LI and TR nodes should not be stripped from top-level content |- |foo |} -!!html/parsoid +!! html/parsoid
    • a
    • @@ -23481,20 +23509,20 @@ Empty LI and TR nodes should not be stripped from top-level content -!!end +!! end -!!test +!! test Empty TR nodes should not be stripped if they have any attributes set -!!wikitext +!! wikitext {{EmptyTRWithHTMLAttrTest}} -!!html/parsoid +!! html/parsoid
      foo
      bar
      -!!end +!! end #### ---------------------------------------------------------------- #### The following section of tests are primarily to test @@ -25911,6 +25939,41 @@ parsoid=html2wt [[Foo]] !! end +!! test +Parsoid should accept interwiki shortcuts +!! options +parsoid=html2wt +!! html/parsoid +

      Foo +Foo +Foo

      +

      Foo +Foo +Foo

      +!! 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 +

      Foo +Foo +Foo

      +!! wikitext +[news:Foo Foo] +[news:Foo Foo] +[news:Foo Foo] +!! end + # See T93839 !! test New wikilinks should be serialized properly @@ -28082,6 +28145,17 @@ dice !! end +!! test +New transclusion added after a list should be serialized after the list +!! options +parsoid=html2wt +!! html/parsoid +
      • a
      foo +!! wikitext +* a +{{echo|foo}} +!! end + # ----------------------------------------------------------------- # End of section for Parsoid-only html2wt tests for serialization # of new content