X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=c9e78876dcb316b6dcec1c1504c4759c42f244c3;hb=9a309c92e6f1346cb503a42e30dbbb6982c79671;hp=e8baa3fe9e2040902e36a569ef54b84d32372779;hpb=b34d4e2cf394c356ef3ad0d4c11a424266e2e683;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e8baa3fe9e..c9e78876dc 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2265,6 +2265,15 @@ Entities inside
 
 !! end
 
+!! test
+ inside of #tag:pre
+!! wikitext
+{{#tag:pre|Foo →bar}}
+!! html
+
Foo →bar
+ +!! end + !! test and
 preference (first one wins)
 !! wikitext
@@ -5632,7 +5641,7 @@ Parenthesis in external links, w/ transclusion or comment
 

(http://example.com)

!! html/parsoid -

(http://example.com/hi)

+

(http://example.com/hi)

(http://example.com)

!! end @@ -5650,7 +5659,7 @@ parsoid={ "modes": ["html2wt"], "suppressErrors": true } text *text [[foo]] -*a [[foo]] +*a [[foo]] !! end !! test @@ -5658,7 +5667,7 @@ mw:ExtLink -vs- mw:WikiLink (T94723) !! options parsoid=html2wt !! html/parsoid -Bar +Bar Bar Bar Bar @@ -7110,6 +7119,25 @@ parsoid=html2wt |} !! end +!! test +Testing serialization after deletion in references +!! options +parsoid={ + "modes": ["wt2wt"], + "changes": [ + ["#x", "remove"] + ] +} +!! wikitext +hi
ho
+ + +!! wikitext/edited +hi + + +!! end + !!test Testing serialization after deletion of table cells !!options @@ -7572,10 +7600,10 @@ Broken image links with HTML captions (bug 39700) abc

!! html/parsoid -

- - -

+

+ + +

!! end !! test @@ -8432,7 +8460,7 @@ Blah blah blah !! wikitext #REDIRECT [[{{echo|Foo}}bar]] !! html/parsoid - + !! end !! test @@ -9912,7 +9940,7 @@ Parsoid: Page property magic word with magic word contents !! wikitext {{DISPLAYTITLE:''{{PAGENAME}}''}} !! html/parsoid - + !! end !! test @@ -9920,7 +9948,7 @@ Parsoid: Template-generated DISPLAYTITLE !! wikitext {{{{echo|DISPLAYTITLE}}:Foo}} !! html/parsoid - + !! end !! test @@ -11211,10 +11239,9 @@ parsoid=wt2html |c |} !!html/parsoid - +
c
- !!end ### @@ -11572,7 +11599,7 @@ Templates: Support for templates generating attributes and content
foo
!! html/parsoid -
foo
+
foo
!! end !! test @@ -12931,7 +12958,7 @@ parsoid=wt2html,wt2wt,html2html
This is a caption
!! html/parsoid -
This is a caption
+
This is a caption
!! end !! test @@ -12942,7 +12969,7 @@ parsoid=wt2html,wt2wt,html2html
This is a caption
!! html/parsoid -
This is a caption
+
This is a caption
!! end !! test @@ -12953,7 +12980,7 @@ parsoid=wt2html,wt2wt,html2html

Foobar.jpg

!! html/parsoid -

+

!! end ## Parsoid does not provide editing support for images where templates produce multiple image attributes. @@ -13132,7 +13159,7 @@ Image with link parameter, wgExternalLinkTarget !! config wgExternalLinkTarget='foobar' !! html/php -

Foobar.jpg +

Foobar.jpg

!! end @@ -13166,7 +13193,7 @@ Image with link parameter, wgExternalLinkTarget, unnamed parameter !! config wgExternalLinkTarget='foobar' !! html/php -

Title +

Title

!! end @@ -13323,8 +13350,9 @@ Image with wiki markup in implicit alt

testing bold in alt

!! html/parsoid -

-

testing bold in alt

+

+ +

testing bold in alt

!! end !! test @@ -13335,7 +13363,7 @@ Alt image option should handle most kinds of wikitext without barfing
This is a link and a bold template.
This is the image caption
!! html/parsoid -
This is a link and a bold template.
This is the image caption
+
This is a link and a bold template.
This is the image caption
!! end ################### @@ -13562,7 +13590,7 @@ Frameless image caption with a free URL

http://example.com

!! html/parsoid -

+

!! end !! test @@ -13672,7 +13700,7 @@ BUG 648: Frameless image caption with a link

text with a link in it

!! html/parsoid -

+

!! end !! test @@ -13683,7 +13711,7 @@ BUG 648: Frameless image caption with a link (suffix)

text with a linkfoo in it

!! html/parsoid -

+

!! end !! test @@ -13694,7 +13722,7 @@ BUG 648: Frameless image caption with an interwiki link

text with a MeatBall:Link in it

!! html/parsoid -

+

!! end !! test @@ -13705,7 +13733,7 @@ BUG 648: Frameless image caption with a piped interwiki link

text with a link in it

!! html/parsoid -

+

!! end !! test @@ -13713,7 +13741,7 @@ T107474: Frameless image caption with !! wikitext [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]] !! html/parsoid -

+

!! end !! test @@ -13724,7 +13752,7 @@ Escape HTML special chars in image alt text

& < > "

!! html/parsoid -

+

!! end !! test @@ -13735,7 +13763,7 @@ BUG 499: Alt text should have Ӓ, not &1234;

♀

!! html/parsoid -

+

!! end !! test @@ -13925,7 +13953,7 @@ Redirected image !! wikitext [[Image:Barfoo.jpg]] !! html/php -

File:Barfoo.jpg +

File:Barfoo.jpg

!! end @@ -14073,7 +14101,7 @@ Parsoid-specific image handling - simple image with a formatted caption !! wikitext [[File:Foobar.jpg|
ab
c
]] !! html/parsoid -

+

!! end !! test @@ -14167,7 +14195,7 @@ T93580: 2. inside inline images !! html/parsoid -

+

  1. ↑ foo
!! end @@ -14179,7 +14207,7 @@ T93580: 3. Templated inside inline images !! html/parsoid -

+

  1. ↑ foo
!! end @@ -14781,7 +14809,7 @@ Parsoid: Defaultsort (template-generated) !! wikitext {{{{echo|DEFAULTSORT}}:Foo}} !! html/parsoid - + !! end ### @@ -16010,7 +16038,7 @@ Bug 2304: HTML attribute safety (dangerous template; 2309)
!! html/parsoid -
+
!! end !! test @@ -16549,9 +16577,12 @@ array (
text
 !! end
 
-#  should be output literally since there is no matching tag that begins it
+##  should be output literally since there is no matching tag that begins it
+## Don't expect parsoid to rt this form.
 !! test
 Parser hook: basic arguments using terminated empty elements (bug 2374)
+!! options
+parsoid=wt2html
 !! wikitext
 
 other stuff
@@ -16569,6 +16600,28 @@ array (
 

other stuff </tag>

+!! html/parsoid +

other stuff +</tag>

+!! end + +## Don't expect parsoid to rt this form. +!! test +Parser hook: Don't allow unclosed extension tags +!! options +parsoid=wt2html +!! wikitext +test 123 + +this is a '''test''' +!! html/php +

test <tag>123 +

this is a test +

+!! html/parsoid +

test <tag>123

+ +

this is a test

!! end ### @@ -16891,7 +16944,7 @@ HTML nested bullet list, closed tags (bug 5497) -!! html +!! html/php
  • One
  • Two: @@ -16902,6 +16955,16 @@ HTML nested bullet list, closed tags (bug 5497)
+!! html/parsoid +
    +
  • One
  • +
  • Two: +
      +
    • Sub-one
    • +
    • Sub-two
    • +
    +
  • +
!! end !! test @@ -17271,7 +17334,7 @@ Fuzz testing: image with bogus manual thumbnail
Error creating thumbnail:
!! html/parsoid -
+
!!end !! test @@ -20856,9 +20919,9 @@ percent-encoding and + signs in internal links (Bug 26410) 3E 3E+

!! html/parsoid -

User:+% Page+title% -%+ %20 %+ %+r -% + +

User:+% Page+title% +%+ %20 %+ %+r +% + 3E 3E+

!! end @@ -22109,7 +22172,7 @@ This should just get lost. B [2]

-
  1. ↑ foo
  2. ↑ bar
  3. +
    1. ↑ foo
    2. ↑ bar
    !! end @@ -22142,7 +22205,7 @@ B ↑ foo bar for a
-
    +
    1. ↑ foo
    !! end @@ -22205,8 +22268,11 @@ Entities in ref name
!! end -# This test is wt2html only because we're permitting the serializer to produce -# dirty diffs, normalizing the unclosed references to the self-closed version. +## The output here may look funny, but it's what the php parser will do. The +## unclosed references tag becomes escaped text, and then a new references +## tag is auto-generated. The test is wt2html only because it roundtrips with +## nowiki tags, and the auto-generated references tag is only dropped in +## rtTestMode. !! test Generate references for unclosed references tag !! options @@ -22216,9 +22282,10 @@ afoo !! html/parsoid -

a[1]

-
    -
  1. ↑ foo
+

a[1]

+ +

<references>

+
  1. ↑ foo
!! end !! test @@ -23748,11 +23815,11 @@ a !! test 2. Leading whitespace in non-indent-pre contexts should not be escaped !! options -parsoid=htm2wt +parsoid=html2wt !! html/parsoid

foo [1]

    -
  1. ↑ a +
  2. ↑ a b
!! wikitext @@ -24664,7 +24731,7 @@ T115289: Don't migrate newlines out of tables with fostered content !! wikitext {{echo|[[Category:One]]}}[[Category:Two]] !! html/parsoid -
+
!! end !! test @@ -26690,8 +26757,8 @@ parsoid=html2wt !! html/parsoid

x y

-

-

+

+

!! wikitext x y