X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=fc90010265507d77cee83594c169ecd9f6367ecb;hb=6e65e0ab0d0dc5e7e0ea000f024a3481da35505b;hp=840c74dbb9673ebcf6299cfc450c4d44a33bfce2;hpb=f70f3f285a5d58dabfb3d7e3a8f4116349ef04d9;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 840c74dbb9..fc90010265 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -572,13 +572,6 @@ http://fr.wikipedia.org/wiki/ðº
!! end -# Note that the html+tidy output removes the spaces after thea | -b | +b + | a | -b | -
---|
a | b | -a | b |
---|
a@@ -1352,12 +1336,13 @@ Non-word characters don't terminate tag names + tidy
<blockquote|>a
-<bâ> doesn't terminate </bâ>
-<bä> doesn't terminate </bä>
-<boo> doesn't terminate </boo>
-<s.foo> doesn't terminate </s.foo>
-<sub-ID#1>
+<blockquote|>a +
<bâ> doesn't terminate </bâ> +
<bä> doesn't terminate </bä> +
<boo> doesn't terminate </boo> +
<s.foo> doesn't terminate </s.foo> +
<sub-ID#1> +
!! end ### @@ -1390,7 +1375,9 @@ parsoid=wt2html<s.foo>s
++
<s.foo>s +
!! html/parsoid<s.foo>s
!! end @@ -1518,7 +1505,8 @@ Entities inside template parameters !! wikitext {{echo|–}} !! html/php+tidy -â
+– +
!! html/parsoid–
!! end @@ -1911,21 +1899,23 @@ ab
!! html+tidy -a
-b
+a
b +
!! end +# Remex wraps empty tag runs with p-tags. +# Parsoid strips them out during p-wrapping. !! test No p-wrappable content !! wikitextfoo
b
!! html+tidy -a
---foo
-
b
+a
+foo
b +
!! end !! test @@ -1972,10 +1960,8 @@ aa
-b
-a
+b
foob
foo!! html+tidy -
a
---foo
-
b
--+foo
-
a
foo
+b
!! end !! test @@ -2016,19 +1996,21 @@ d e xfoo
a
-b c d e
-x
-z
+a +
b +c +d e +
+x
z +
!! end -# Tidy strips out the emptya
-b
-b
-d
-
+
a +
b +
+b +
d +
+
foo
-a
-b
+foo
a +
b +
!! html/parsoidfoo
a
@@ -2276,9 +2258,6 @@ Foo tag. (see comment 23-25 of T8200)
!! test
T17491: / Foo Foo quux
+ in blockquote (2)
!! wikitext
@@ -2289,9 +2268,8 @@ T17491: / in blockquote (2)
!! html+tidy
-
-
+bar baz quux
!! end
!! test
@@ -2426,7 +2404,6 @@ parsoid=wt2html
bar baz
a
--foo +!! end -# Note that tidy removes the empty- -!! html/php+tidy -fooa
--!! html/parsoid-foo -a
@@ -2469,16 +2438,12 @@ HTML pre followed by indent-pre
tags from the start and end. -# Parsoid does not, by design. !! test Block tag pre !! wikitext
foo!! html/php+tidy -
-foo -+
foo!! html/parsoid
foo!! end @@ -2641,10 +2606,8 @@ parsoid=wt2html
-x --
<pre
+x+<pre
x@@ -2938,7 +2901,8 @@ Templates: Parsoid parameter escaping test 1 !! wikitext {{echo|[foo]|{{echo|[bar]}}}} !! html/php+tidy -
[foo]
+[foo] +
!! html/parsoid[foo]
@@ -2949,7 +2913,8 @@ Parsoid: Pipes in external links in template parameter !! wikitext {{echo|[{{echo|http://example.com}} link]}} !! html/php+tidy - +link +
!! html/parsoid !! end @@ -2959,7 +2924,8 @@ Parsoid: pipe in transclusion parameter !! wikitext {{echo|http://foo.com/a|b}} !! html/php+tidy - + !! html/parsoid +a|b +
!! html/parsoidMonth | -Savings | -
---|---|
Month + | +Savings + |
January | -$100 | -January + | +$100 + |
February | -$80 | -February + | +$80 + |
Sum | -$180 | -
+
+
foo
-bar
++foo
bar +
!! end !! test @@ -9620,8 +9424,8 @@ Horizontal ruler -- Supports content following dashes on same lineFoo
+Foo +
!! end ### @@ -9922,11 +9726,10 @@ Multiple list tags generated by templates !! html+tidy -+
++
+
!! html/parsoid+
foo | +
foo |
'foo & bar = baz'
-!! html+tidy -'foo & bar = baz'
!! end !! test @@ -10683,11 +10460,9 @@ title=[[*RFC 1234 http://example.com/]] parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGENAME}} -!! html/php +!! html+tidy*RFC 1234 http://example.com/
-!! html+tidy -*RFC 1234 http://example.com/
!! end !! test @@ -10709,11 +10484,9 @@ title=[[*RFC 1234 http://example.com/]] parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{PAGENAMEE}} -!! html/php +!! html+tidy*RFC_1234_http://example.com/
-!! html+tidy -*RFC_1234_http://example.com/
!! end !! test @@ -11474,12 +11247,7 @@ Template with thumb image (with link in description) This is a test template with parameter !! html+tidy -This is a test template with parameter
-This is a test template with parameter
!! html/parsoidThis is a test template with parameter
ha
-ho
-- |
hi | -
- |
ha
ho
hi + |
ha
a
-- |
foo +
+foo
-- |
a
-Table not started
-!! html/parsoid -Table not started
+!! html+tidy +Table not started +
!! end !! test @@ -18763,10 +18519,6 @@ Self closed html pairs (T7487)http://
-+http://
https:// | - - |
---|
https:// | -- | - | - |
---|
junkhttp://example.com
junk!! html/php+tidy - -
-junk -+
junk!! html/parsoid
junk!! end @@ -20688,6 +20408,48 @@ image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla. !! end +!! test +Gallery (without px units) +!! wikitext +
JavaScript
-!! html/php+tidy -JavaScript
!! html/parsoidJavaScript
!! end @@ -21111,11 +20871,9 @@ parsoid=wt2html,wt2wt,html2html HTML Hex character encoding bogus encoding (T28437 regression check) !! wikitext see;SEE; -!! html/php +!! html&#xsee;&#XSEE;
-!! html/parsoid -&#xsee;&#XSEE;
!! end !! test @@ -21127,8 +20885,6 @@ parsoid=wt2html,wt2wt,html2html !! html/phpîî
-!! html/php+tidy -îî
!! html/parsoidîî
!! end @@ -21147,22 +20903,20 @@ Illegal character references (T106578) ; Surrogate: ; This is an okay astral character: 💩 !! html+tidy -RFC 983 987
-!! html+tidy -RFC 983 987
+!! html/parsoid +RFC 983 987
!! end !! test @@ -22647,10 +22399,10 @@ language=zh variant=zh-cn a-{H|0=>zh-cn:xy;0=>zh-tw:bab
-a
d
@@ -22936,10 +22688,9 @@ language=zh variant=zh-cn ;foo:bar ;-{zh-cn:AAA !! html/php+tidy -+
!! html/parsoidA
-B
+A +
B +
!! html/parsoidA
@@ -23341,9 +23089,8 @@ Line two
Line two
!! html+tidy
- Line one Line two Line one
+Line two Line one Line one
+
+Line two Line one Line two Line one
+ Line two
+
-
+
!! end
!! test
@@ -23361,8 +23108,9 @@ Line two
!! html+tidy
-
+
-
!! end
@@ -23400,13 +23148,9 @@ Line two
-!! end +# FIXME: Why does/should the blockquote+div combo suppress p-wrapping here? !! test Paragraphs inside blockquotes/divs (no extra line breaks) !! wikitext @@ -24314,21 +24058,13 @@ __TOC__Line one
-Line two
-
Quote[edit]
--Quote
-
[edit]
+ +[edit]Quote
Quote
Bar[edit]
--Bar
-
[edit]
+[edit]Bar
tag in TOC, removed by Sanitizer (T92892) !! wikitext @@ -24529,18 +24254,6 @@ __TOC__
foo|bar + |
foo|bar | -
x
- a|b
- |
-
Foo
+Foo +
!! html/parsoidFoo
!! end @@ -26874,11 +26584,9 @@ RT-ed inter-element separators should be valid separators !!end -# Parsoid-only since PHP parser relies on Tidy for correct output +# Parsoid-only test of a DOM pass !!test Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out -!!options -parsoid !! wikitext {| |foo @@ -26888,7 +26596,7 @@ bar {| |foo |} -!! html +!! html/parsoidfoo
bar |
- + | +- + | ||
---|---|---|---|
- | -- | -||
- | -- | -- + | +- + |
- | -- - + | - | - - +- + |
-
- +
+[[#%3Cscript%3Ealert(1)%3C/script%3E|
!! end -# Use $wgRawHtml to inject a