From: Subramanya Sastry Date: Mon, 26 Nov 2018 15:14:03 +0000 (-0500) Subject: Sync up with Parsoid parserTests.txt X-Git-Tag: 1.34.0-rc.0~3441^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=72fd6adca712c2805b0c47371f16a8cfca0e5c5d;p=lhc%2Fweb%2Fwiklou.git Sync up with Parsoid parserTests.txt This now aligns with Parsoid commit c900a0c7dbd27cdba09d43971411e6849be73558 Change-Id: I7d7049e4cfbe50d7fe9c90894a6879e1694a3078 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e034fec58d..d2fbd8d302 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1435,7 +1435,7 @@ Non-word characters don't terminate tag names !! end ### -### See tests/parser/parserTestsParserHook.php for the extension) +### See tests/parser/ParserTestParserHook.php for the extension) ### This checks that HTML5 tags (with non-word characters in the tag ### name) make it safely through the parser -- the Sanitizer will ### munge them later, as it should. @@ -2834,7 +2834,7 @@ two">hi
hi
!! html/parsoid -
hi
+
hi
!! end !! test @@ -2869,7 +2869,7 @@ parsoid=wt2html
x
<pre
!! html/parsoid -
x
+
x
!! end @@ -3681,7 +3681,7 @@ array (
hi
!! html/parsoid -
hi
+
hi
!! end !!test @@ -6925,9 +6925,9 @@ Don't break on | in extension attribute in template !! html/parsoid -

[1]

+

[1]

-
  1. ↑ ha
+
  1. ↑ ha
!! end ## We don't support roundtripping of these attributes in Parsoid. @@ -7100,9 +7100,9 @@ T107652: s in templates that also generate table cell attributes should be !! html/parsoid - +
Foo[1]
Foo[1]
-
  1. ↑ foo
+
  1. ↑ foo
!! end !! test @@ -8044,6 +8044,8 @@ Link containing % as a double hex sequence interpreted to hex sequence ## Example for such a section: == < == !! test Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors +!! options +title=[[Main Page]] !! config wgFragmentMode=[ 'html5', 'legacy' ] !! wikitext @@ -8822,6 +8824,8 @@ Interwiki link with fragment (T4130) !! test Link scenarios with escaped fragments +!! options +title=[[Main Page]] !! config wgFragmentMode=[ 'html5', 'legacy' ] !! wikitext @@ -11024,7 +11028,7 @@ wgRestrictDisplayTitle=false Parser test !! html/parsoid - + !! end # NOTE: mw:ExpandedAttrs is not the best typeof here. mw:Transclusion is better. @@ -12725,7 +12729,7 @@ array (
  • foo-{bar}bat
  • foo-{bar}bat
  • foo-{bar}bat
  • -
  • foo-{bar}bat
  • +
  • foo-{bar}bat
  •  
    
     !! end
    @@ -13647,11 +13651,11 @@ Templates: Wiki Tables: 7. Fosterable s should get fostered
     
     
     !! html/parsoid
    -

    [1]

    +

    [1]

    -
    1. ↑ foo
    +
    1. ↑ foo
    !! end !! test @@ -13827,6 +13831,7 @@ Parser Functions: 2. Nested use (only outermost should be marked up) !! test Template nested in extension tag in template !! options +title=[[Main Page]] language=zh !! wikitext {{echo|hi[[ho|{{echo|hi}}]]}} @@ -13834,10 +13839,10 @@ language=zh {{echo|hi-{ho|{{echo|hi}}}-}} !! html/parsoid -

    hi[1] -hi[2] -hi[3]

    -
    1. ↑ hi
    2. ↑
    3. ↑
    +

    hi[1] +hi[2] +hi[3]

    +
    1. ↑ hi
    2. ↑
    3. ↑
    !! end ### @@ -16418,9 +16423,9 @@ T93580: 1. Templated inside block images !! html/parsoid -
    Caption with templated ref: [1]
    +
    Caption with templated ref: [1]
    -
    1. ↑ foo
    +
    1. ↑ foo
    !! end !! test @@ -16430,9 +16435,9 @@ T93580: 2. inside inline images !! html/parsoid -

    +

    -
    1. ↑ foo
    +
    1. ↑ foo
    !! end !! test @@ -16442,9 +16447,9 @@ T93580: 3. Templated inside inline images !! html/parsoid -

    +

    -
    1. ↑ foo
    +
    1. ↑ foo
    !! end ### @@ -17779,12 +17784,12 @@ section 6

    Underscore-Entity_between_Text

    section 6

    -

    #Space between Text -#Space-Entity between Text -#Plus+between+Text -#Plus-Entity+between+Text -#Underscore_between_Text -#Underscore-Entity_between_Text

    +

    #Space between Text +#Space-Entity between Text +#Plus+between+Text +#Plus-Entity+between+Text +#Underscore_between_Text +#Underscore-Entity_between_Text

    !! end # Parsoid html2wt disabled because it adds padding spaces around = @@ -18991,7 +18996,7 @@ Tags which are hidden from tidiers cannot pass through the Sanitizer !! end ### -### Parser hooks (see tests/parser/parserTestsParserHook.php for the extension) +### Parser hooks (see tests/parser/ParserTestParserHook.php for the extension) ### !! test @@ -19261,7 +19266,7 @@ array ( !! end ### -### (see tests/parser/parserTestsParserHook.php for the extension) +### (see tests/parser/ParserTestParserHook.php for the extension) ### !! test @@ -19275,8 +19280,8 @@ Parser hook: static parser hook not inside a comment hello, world

    !! html/parsoid -

    -

    hello, world

    +

    +

    hello, world

    !! end !! test @@ -19289,7 +19294,7 @@ Parser hook: static parser hook inside a comment

    !! html/parsoid -

    +

    !! end # Nested template calls; this case was broken by Parser.php rev 1.506, @@ -19364,6 +19369,8 @@ Table not started !! test Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id="" +!! options +title=[[Main Page]] !! config wgFragmentMode=[ 'html5', 'legacy' ] !! wikitext @@ -20055,8 +20062,8 @@ parsoid=wt2html
    
     
     !! html/parsoid
    -
    
    +
    
     !! end
     
     !! test
    @@ -20082,7 +20089,7 @@ Templates in extension attributes are not expanded
     
    
     
     !! html/parsoid
    -
    
    +
    
     !! end
     
     !! test
    @@ -26801,6 +26808,33 @@ parsoid=html2wt
     
     !! end
     
    +!! test
    +Tables: 4e. Escape }
    +!! options
    +parsoid=html2wt
    +!! html/parsoid
    +
    +
    +
    }
    x}
    + +!! wikitext +{| +|} +|- +|x||} +|} +!! html/php + + + + + +
    } +
    x} +
    + +!! end + !! test Tables: 5. Empty table cells should get whitespace to avoid need for nowikis !! options @@ -30693,6 +30727,7 @@ parsoid={ a - + +} !! wikitext {| @@ -30701,6 +30736,8 @@ parsoid={ |- |- |+ +|- +|} |} !! end @@ -30716,6 +30753,7 @@ parsoid={ a - + +} !! wikitext {| @@ -30724,6 +30762,8 @@ parsoid={ | - |- | + +|- +| } |} !! end @@ -31350,7 +31390,7 @@ wgFragmentMode=[ 'html5', 'legacy' ]

    !! html/parsoid

    A&B&C&amp;D&amp;amp;E

    -

    #A&B&C&amp;D&amp;amp;E

    +

    #A&B&C&amp;D&amp;amp;E

    !! end !! test @@ -31463,12 +31503,12 @@ wgFragmentMode=[ 'html5', 'legacy' ]

    тест

    Hey < # " > % : '

    -

    #Foo bar #foo Bar #Тест #тест #Hey < # " > % : '

    +

    #Foo bar #foo Bar #Тест #тест #Hey < # " > % : '

    💩

    -

    #啤酒 #啤酒

    +

    #啤酒 #啤酒

    !! end # Parsoid doesn't support this mode @@ -31581,7 +31621,7 @@ wgFragmentMode=[ 'html5', 'legacy' ]

    !! html/parsoid

    Foo bar

    -

    #Foo bar

    +

    #Foo bar

    !! end !! test @@ -31638,7 +31678,7 @@ wgFragmentMode=[ 'html5' ]

    #[foo]

    !! html/parsoid -

    #[foo]

    +

    #[foo]

    !! end ## ------------------------------