X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=96f82109e842d1fa40d4b798c89544cf58a4c6cc;hb=38abb23f9ff07899803cf3dd37df8cdf2f5fa00c;hp=d725b5d9b5740c3b9e865970346cd397f566a858;hpb=445fa4d8f13f5b8c96a7c1f6bbe123fd8793d9ca;p=lhc%2Fweb%2Fwiklou.git
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index d725b5d9b5..96f82109e8 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -425,11 +425,11 @@ a
a
-
+
a
-
+
!! end
@@ -442,7 +442,7 @@ Extra newlines between heading and content are swallowed
[[a]]
!! html
-
+
a
!! end
@@ -3966,19 +3966,31 @@ Definition Lists: colons occurring in tags
;a:b
;a:b
;a:b
+;a
+:b
;{{echo|a:b}}
;{{echo|''a:b''}}
-!! html
-- a
+!! html+tidy
+
+- a
- b
- a:b
- a:b
- a:b
-a:b
+-
+
a:b
+
+-
+
+
- a
- b
-- a:b
-
+- a:b
+
!! end
!! test
@@ -6226,6 +6238,27 @@ parsoid=html2wt
|}
!! end
+!!test
+Testing serialization after deletion of table cells
+!!options
+parsoid={
+ "modes": ["wt2wt"],
+ "changes": [
+ ["#x", "remove"]
+ ]
+}
+!!wikitext
+{|
+!h1 !!h2 !!h3
+| id="x" |c1 {{!}}{{!}}{{!}}c2 |||c3
+|}
+!! wikitext/edited
+{|
+!h1 !!h2 !!h3
+|c2 |||c3
+|}
+!!end
+
###
### Internal links
###
@@ -8052,7 +8085,7 @@ List interrupted by empty line or heading
!! html
-
+
!!end
@@ -9760,8 +9793,8 @@ Bug 6563: Edit link generation for section shown by
!! wikitext
{{includeonly section}}
!! html
-§Includeonly section[edit]
-§Section T-1[edit]
+§Includeonly section[edit]
+§Section T-1[edit]
!! end
@@ -9787,7 +9820,7 @@ Bug 6563: Edit link generation for section suppressed by
==Section 1==
!! html
-
+
!! end
@@ -9824,12 +9857,12 @@ some
can have stuff=== here ===
!! html/php
-
+
some
-
+
!! html/parsoid
hu
@@ -13239,13 +13272,13 @@ More
===Smaller headline===
Blah blah
!! html
-
+
Some text
-
+
More
-§Smaller headline[edit]
+§Smaller headline[edit]
Blah blah
!! end
@@ -13285,14 +13318,14 @@ Some text
-
-§Subheadline 1[edit]
-§Skipping a level[edit]
-§Skipping a level[edit]
-
+
+§Subheadline 1[edit]
+§Skipping a level[edit]
+§Skipping a level[edit]
+
Some text
-§Another headline[edit]
+§Another headline[edit]
!! end
@@ -13314,10 +13347,10 @@ __FORCETOC__
-
-
-
-
+
+
+
+
!! end
@@ -13366,16 +13399,16 @@ Handling of sections up to level 6 and beyond
-§Level 1 Heading[edit]
-§Level 2 Heading[edit]
-§Level 3 Heading[edit]
-§Level 4 Heading[edit]
-§Level 5 Heading[edit]
-§Level 6 Heading[edit]
-§= Level 7 Heading=[edit]
-§== Level 8 Heading==[edit]
-§=== Level 9 Heading===[edit]
-§==== Level 10 Heading====[edit]
+§Level 1 Heading[edit]
+§Level 2 Heading[edit]
+§Level 3 Heading[edit]
+§Level 4 Heading[edit]
+§Level 5 Heading[edit]
+§Level 6 Heading[edit]
+§= Level 7 Heading=[edit]
+§== Level 8 Heading==[edit]
+§=== Level 9 Heading===[edit]
+§==== Level 10 Heading====[edit]
!! end
@@ -13409,12 +13442,12 @@ TOC regression (bug 9764)
-
-
-§title 1.1.1[edit]
-
-
-
+
+
+§title 1.1.1[edit]
+
+
+
!! end
@@ -13446,12 +13479,12 @@ wgMaxTocLevel=3
-
-
-§title 1.1.1[edit]
-
-
-
+
+
+§title 1.1.1[edit]
+
+
+
!! end
@@ -13477,11 +13510,11 @@ wgMaxTocLevel=3
-
-§Section 1.1[edit]
-§Section 1.1.1[edit]
-§Section 1.1.1.1[edit]
-
+
+§Section 1.1[edit]
+§Section 1.1.1[edit]
+§Section 1.1.1.1[edit]
+
!! end
@@ -13492,8 +13525,8 @@ Resolving duplicate section names
== Foo bar ==
== Foo bar ==
!! html
-
-
+
+
!! end
@@ -13503,8 +13536,8 @@ Resolving duplicate section names with differing case (bug 10721)
== Foo bar ==
== Foo Bar ==
!! html
-
-
+
+
!! end
@@ -13523,10 +13556,10 @@ __NOTOC__
{{sections}}
==Section 4==
!! html
-
-
-
-
+
+
+
+
!! end
@@ -13537,8 +13570,8 @@ __NOEDITSECTION__
==Section 1==
==Section 2==
!! html
-§Section 1
-§Section 2
+§Section 1
+§Section 2
!! end
@@ -13547,7 +13580,7 @@ Link inside a section heading
!! wikitext
==Section with a [[Main Page|link]] in it==
!! html
-§Section with a link in it[edit]
+§Section with a link in it[edit]
!! end
@@ -13570,9 +13603,9 @@ __TOC__
-
-
-
+
+
+
!! end
@@ -13596,10 +13629,10 @@ The line above must have a trailing space!
-->
But just in case it doesn't...
!! html
-
+
The line above must have a trailing space!
-
+
But just in case it doesn't...
!! end
@@ -13636,19 +13669,19 @@ section 5
-§text > text[edit]
+§text > text[edit]
section 1
-§text < text[edit]
+§text < text[edit]
section 2
-§text & text[edit]
+§text & text[edit]
section 3
-§text ' text[edit]
+§text ' text[edit]
section 4
-§text " text[edit]
+§text " text[edit]
section 5
!! end
@@ -13696,22 +13729,22 @@ section 6
-§Space between Text[edit]
+§Space between Text[edit]
section 1
-§Space-Entity between Text[edit]
+§Space-Entity between Text[edit]
section 2
-§Plus+between+Text[edit]
+§Plus+between+Text[edit]
section 3
-§Plus-Entity+between+Text[edit]
+§Plus-Entity+between+Text[edit]
section 4
-§Underscore_between_Text[edit]
+§Underscore_between_Text[edit]
section 5
-§Underscore-Entity_between_Text[edit]
+§Underscore-Entity_between_Text[edit]
section 6
#Space between Text
#Space-Entity between Text
@@ -13740,10 +13773,10 @@ Headers with excess '=' characters
-
-
-§italic heading=[edit]
-§=italic heading[edit]
+
+
+§italic heading=[edit]
+§=italic heading[edit]
!! end
@@ -13778,12 +13811,12 @@ __NOEDITSECTION__
-
-
-
-
-
-
+
+
+
+
+
+
!! end
@@ -13798,9 +13831,9 @@ parsoid=wt2html,wt2wt
c2
c3-->
!! html
-
-
-
+
+
+
!! end
@@ -15381,7 +15414,7 @@ Fuzz testing: Parser14
== onmouseover= ==
http://__TOC__
!! html
-§onmouseover=[edit]
+§onmouseover=[edit]
http://Contents
- 1 onmouseover=
@@ -15390,7 +15423,7 @@ http://Contents
!! html+tidy
-
§onmouseover=[edit]
+
§onmouseover=[edit]
http://
@@ -15408,13 +15441,13 @@ Fuzz testing: Parser14-table
==a==
{| STYLE=__TOC__
!! html
-
+
!! html+tidy
-
+
|
@@ -17423,7 +17456,7 @@ Inclusion of !userCanEdit() content
!! wikitext
{{MediaWiki:Fake}}
!! html
-
+
!! end
@@ -17455,12 +17488,12 @@ Out-of-order TOC heading levels
-
-
-
-
-
-
+
+
+
+
+
+
!! end
@@ -17567,7 +17600,7 @@ anchorencode encodes like the TOC generator: (bug 18431)
{{anchorencode: _ +:.3A%3A&&]] }}
__NOEDITSECTION__
!! html
-§_ +:.3A%3A&&]]
+§_ +:.3A%3A&&]]
.2B:.3A.253A.26.26.5D.5D
!! end
@@ -17817,7 +17850,7 @@ language=sr variant=sr-ec
!! wikitext
== -{Naslov}- ==
!! html
-
+
!! end
@@ -18207,7 +18240,7 @@ Morwen/13: Unclosed link followed by heading
!! html
[[link
-
+
!! end
@@ -18219,7 +18252,7 @@ HHP2.1: Heuristics for headings in preprocessor parenthetical structures
!! html
{{foo|
-§heading
+§heading
!! end
@@ -18231,7 +18264,7 @@ HHP2.2: Heuristics for headings in preprocessor parenthetical structures
!! html
{{foo|
-
+
!! end
@@ -19115,7 +19148,7 @@ __TOC__
-§Lost episodes[edit]
+§Lost episodes[edit]
!! end
@@ -19133,7 +19166,7 @@ __TOC__
-§should be bold then normal text[edit]
+§should be bold then normal text[edit]
!! end
@@ -19151,7 +19184,7 @@ __TOC__
-
+
!! end
@@ -19169,7 +19202,7 @@ __TOC__
-
+
!! html+tidy
@@ -19180,7 +19213,7 @@ __TOC__
- 1 Quote
-
+
Quote
@@ -19203,7 +19236,7 @@ QED
-§Proof: 2 < 3[edit]
+§Proof: 2 < 3[edit]
Hanc marginis exiguitas non caperet.
QED
@@ -19224,8 +19257,8 @@ __TOC__
-
-
+
+
!! html+tidy
-
-
+
+
Bar
@@ -19260,8 +19293,8 @@ __TOC__
-
-§ b">Evilbye[edit]
+
+§ b">Evilbye[edit]
!! end
@@ -19289,11 +19322,11 @@ __TOC__
-
-
-§The attributes on these span tags must be deleted from the TOC[edit]
-§All attributes on these span tags must be deleted from the TOC[edit]
-§Attributes after dir on these span tags must be deleted from the TOC[edit]
+
+
+§The attributes on these span tags must be deleted from the TOC[edit]
+§All attributes on these span tags must be deleted from the TOC[edit]
+§Attributes after dir on these span tags must be deleted from the TOC[edit]
!! end
@@ -19309,7 +19342,7 @@ __TOC__
-
+
!! end
@@ -19326,7 +19359,7 @@ title=[[Main Page]]
!! wikitext
{{int:Bug32057}}
!! html
-§Headline text[edit]
+§Headline text[edit]
!! end
@@ -19441,7 +19474,7 @@ nowiki inside link inside heading (bug 18295)
!! wikitext
==[[foo|xyz]]==
!! html
-
+
!! end
@@ -19626,11 +19659,11 @@ Lead
Lead
-
-
-
-
-
+
+
+
+
+
!! end
@@ -19720,13 +19753,13 @@ B [foo]
C
!! html
-A [1]
-B [2]
+
A [1]
+B [2]
C [3]
-
-- â foo
-- â foo
-- â
+
+- â foo
+- â foo
+- â
!!end
@@ -19739,10 +19772,10 @@ A [foo]
B
!! html
-A [1]
+
A [1]
B [1]
-
-- â 1.0 1.1 foo
+
+- â 1.0 1.1 foo
!!end
@@ -19756,11 +19789,11 @@ B
C
!! html
-A [1]
+
A [1]
B [1]
C [1]
-
-- â 1.0 1.1 1.2 foo
+
+- â 1.0 1.1 1.2 foo
!!end
@@ -19773,9 +19806,9 @@ parsoid
A [foo]
!! html
-A [1]
-
-- â foo
+A [1]
+
+- â foo
!!end
@@ -19790,11 +19823,11 @@ A [
!! html
-]A [1]
+A [1]
-- â This is a bolded link and this is a transclusion
-
+- â This is a bolded link and this is a transclusion
+
!!end
@@ -19811,13 +19844,13 @@ A [
!! html
-]A [1]
+A [1]
-- â foo
+
- â foo
bar
baz
-
+
!!end
@@ -19841,10 +19874,10 @@ booz
!! html
-A [1]
+A [1]
-- â foo
+
- â foo
bar
@@ -19854,7 +19887,7 @@ baz
booz
-
+
!!end
@@ -19867,9 +19900,9 @@ A [ foo {{echo|] B C}}
!! html
-A [1] B C}}
+A [1] B C}}
-- â foo {{echo|
+- â foo {{echo|
!!end
@@ -19881,9 +19914,9 @@ parsoid
A [ foo "},"attrs":{}}'>[1] B C
+]A [1] B C
-- â foo
+- â foo
!!end
@@ -19896,11 +19929,11 @@ A [ foo ] B C
!! html
-A [1] B C
+A [1] B C
-- â foo
+- â foo
!!end
@@ -19913,11 +19946,11 @@ A [foo] B
C [bar] D
!! html
-A [1] B
-C [2] D
-
-- â foo
-- â bar
+A [1] B
+C [2] D
+
+- â foo
+- â bar
!!end
@@ -19941,10 +19974,9 @@ c
[2]
c
-
-- â
-- â
-
+
+- â
+- â
!!end
!!test
@@ -19957,11 +19989,12 @@ parsoid
B
!! html
-[1] A
-[2] B
-
-- â foo
-- â bar
+[1] A
+[2] B
+
+- â foo
+- â bar
+
!!end
@@ -19974,10 +20007,10 @@ parsoid
!! html
-[1]
-
+[1]
+
-- â foo <ref>bar</ref> baz
+- â foo <ref>bar</ref> baz
!!end
@@ -19991,10 +20024,10 @@ B1 B2 [bar]
!! html
-A1 [1] A2 [1]
-B1 [2] B2 [2]
+A1 [1] A2 [1]
+B1 [2] B2 [2]
-- â 1.0 1.1 foo
- â 2.0 2.1 bar
+- â 1.0 1.1 foo
- â 2.0 2.1 bar
!!end
@@ -20008,10 +20041,9 @@ A [foo]
!! html
-A [1]
-
+A [1]
-- â foo
+- â foo
!!end
!!test
@@ -20023,11 +20055,12 @@ parsoid
!!html
-[1]
+
[1]
-
-- â foo
+
+- â foo
+
!!end
!!test
@@ -20039,11 +20072,12 @@ parsoid
!!html
-[1]
+
[1]
-
-- â foo
+
+- â foo
+
!!end
!!test
@@ -20055,9 +20089,29 @@ parsoid
!! html
-1 [1] 2 [1]
+
1 [1] 2 [1]
+
+
+- â 1.0 1.1 foo
+
+!!end
+
+!!test
+Ref: 20. ref-tags with identical names but different content should keep it
+!!options
+parsoid
+!! wikitext
+A [Foo one]
+B [Foo two]
+C
+
+
+!! html
+A [1]
+B [1]
+C [1]
-- â 1.0 1.1 foo
+- â 1.0 1.1 1.2 Foo one
!!end
@@ -20068,7 +20122,7 @@ parsoid
!! wikitext
!! html
-
+
!!end
!!test
@@ -20084,16 +20138,18 @@ C [baz]
!! html
-A [a 1]
-B [b 1]
-C [1]
+A [a 1]
+B [b 1]
+C [1]
-- â foo
+
+- â foo
-- â baz
+
+- â baz
-
-- â bar
+
+- â bar
!!end
@@ -20110,14 +20166,15 @@ B [bar]
!! html
-A [1]
+A [1]
-- â foo
+- â foo
-B [1]
+B [1]
-- â bar
+
+- â bar
!!end
@@ -20135,15 +20192,15 @@ C [cfoo]
!! html
-A [a 1]
-B [1]
+A [a 1]
+B [1]
-- â afoo
+- â afoo
-C [2]
+C [2]
-- â bfoo
- â cfoo
+- â bfoo
- â cfoo
!!end
@@ -20161,10 +20218,10 @@ This should just get lost.
!! html
A [1]
-B [2]
+B [2]
-- â foo
- â bar
+- â foo
- â bar
!!end
@@ -20175,7 +20232,8 @@ parsoid
!! wikitext
[Foo] {{echo|}}
!! html
-[1]
- â Foo
+[1]
- â Foo
+
!!end
!! test
@@ -20192,12 +20250,17 @@ B
[foo]
!! html
-A [1]
-B [X 1]
+A [1]
+B [X 1]
+
-- â foo bar for a
+
+- â foo bar for a
+
-- â foo
+
+- â foo
+
!! end
!! test
@@ -20209,7 +20272,8 @@ X{{echo|[foo {{echo|bar}} and {{echo|baz}} boo]}}
!! html
X[1]
-- â foo bar and baz boo
+- â foo bar and baz boo
+
!!end
# This test only works in wt2html now as the are always generated
@@ -20224,12 +20288,12 @@ parsoid
A [foo]
B [bar]
!! html
-A [1] B [inexistent 1]
-
-- â foo
+A [1] B [inexistent 1]
+
+- â foo
-
-- â bar
+
+- â bar
!! end
@@ -20241,9 +20305,9 @@ parsoid
[hi]
!! html
-[1]
-
-- â hi
+[1]
+
+- â hi
!! end
@@ -20258,11 +20322,9 @@ a[foo]
!! html
-a[1]
-
-
+a[1]
-- â foo
+- â foo
!! end
!! test
@@ -20283,11 +20345,11 @@ Empty LI and TR nodes should be stripped from template content
{{EmptyLITest}}
{{EmptyTRTest}}
!!html/parsoid
-
+
-
+
foo |
@@ -20331,7 +20393,7 @@ Empty TR nodes should not be stripped if they have any attributes set
!!wikitext
{{EmptyTRWithHTMLAttrTest}}
!!html/parsoid
-
+
foo |
@@ -21531,11 +21593,11 @@ parsoid=html2wt,wt2wt
a' foo bar
a' foo bar
foo x'bar
-'foo [1]
+'foo [1]
'foo test
'foo and
bar
-
-- â test
+
+- â test
!! end
@@ -21652,9 +21714,10 @@ foo [''a''
b]
!! html
-foo [1]
-
-- â a b
+foo [1]
+
+- â a
+ b
!! end
@@ -21742,12 +21805,14 @@ parsoid
!! test
2. other tags
!! wikitext
-foo
-foo
+* foo
+* foo
+*
!! html
- <div>foo</div>
-<div style="color:red">foo</div>
-
+- <div>foo</div>
+- <div style="color:red">foo</div>
+- <td>
+
!! end
!! test
|