X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=0a2e87fcaa5aae59d77352711bcadd807487fa99;hb=bd2850d6125e6092b26d5af569b3f6e2b53a0228;hp=a868214ded2b5f5172519394d819906b2630943a;hpb=7af7ba2f05dd802d6ff8615364dd874862ebc4be;p=lhc%2Fweb%2Fwiklou.git
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index a868214ded..0a2e87fcaa 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -157,23 +157,23 @@ Template:OpenTable
###
!! test
Blank input
-!! input
-!! result
+!! wikitext
+!! html
!! end
!! test
Simple paragraph
-!! input
+!! wikitext
This is a simple paragraph.
-!! result
+!! html
This is a simple paragraph.
!! end
!! test
Paragraphs with extra newline spacing
-!! input
+!! wikitext
foo
bar
@@ -184,7 +184,7 @@ baz
booz
-!! result
+!! html
foo
bar
@@ -196,7 +196,7 @@ baz
!! test
Paragraphs with newline spacing with comment lines in between
-!! input
+!! wikitext
----
a
@@ -232,7 +232,7 @@ a
b
----
-!! result
+!! html
a
b
@@ -269,7 +269,7 @@ b
!! test
Paragraphs with newline spacing with non-empty white-space lines in between
-!! input
+!! wikitext
----
a
@@ -280,7 +280,7 @@ a
b
----
-!! result
+!! html
a
b
@@ -296,7 +296,7 @@ b
!! test
Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
-!! input
+!! wikitext
----
a
@@ -319,7 +319,7 @@ a
b
----
-!! result
+!! html
a
b
@@ -343,13 +343,13 @@ b
!! test
Extra newlines: More paragraphs with indented comment
-!! input
+!! wikitext
a
b
-!!result
+!! html
a
b
@@ -358,7 +358,7 @@ b
!! test
Extra newlines followed by heading
-!! input
+!! wikitext
a
@@ -368,7 +368,7 @@ a
=b=
-!! result
+!! html
a
@@ -382,13 +382,13 @@ a
!! test
Extra newlines between heading and content are swallowed
-!! input
+!! wikitext
=b=
[[a]]
-!! result
+!! html
@@ -396,20 +396,20 @@ Extra newlines between heading and content are swallowed
!! test
Parsing an URL
-!! input
+!! wikitext
http://fr.wikipedia.org/wiki/ðº
-!! result
+!! html
!! end
!! test
Simple list
-!! input
+!! wikitext
* Item 1
* Item 2
-!! result
+!! html
Item 1
@@ -421,7 +421,7 @@ Simple list
!! test
Italics and bold
-!! input
+!! wikitext
* plain
* plain''italic''plain
* plain''italic''plain''italic''plain
@@ -437,7 +437,7 @@ Italics and bold
* plain'''bold''bold-italic'''''plain
* plain l'''italic''plain
* plain l''''bold''' plain
-!! result
+!! html
plain
@@ -476,9 +476,9 @@ Italics and bold
# this example taken from the [[simple:Moon]] article (bug 47326)
!! test
Italics and possessives (1)
-!! input
+!! wikitext
obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
-!! result
+!! html
!! end
@@ -486,9 +486,9 @@ obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
# this example taken from [[en:Flaming Pie]] (bug 49926)
!! test
Italics and possessives (2)
-!! input
+!! wikitext
'''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
-!! result
+!! html
Flaming Pie is ... released in 1997. In Flaming Pie's liner notes
!! end
@@ -496,9 +496,9 @@ Italics and possessives (2)
# this example taken from [[en:Dictionary]] (bug 49926)
!! test
Italics and possessives (3)
-!! input
+!! wikitext
The first monolingual dictionary written in a Romance language was ''Sebastián Covarrubias''' ''Tesoro de la lengua castellana o española'', published in 1611 in Madrid. In 1612 the first edition of the ''Vocabolario dell'[[Accademia della Crusca]]'', for Italian, was published. In 1690 in Rotterdam was published, posthumously, the ''Dictionnaire Universel''.
-!! result
+!! html
The first monolingual dictionary written in a Romance language was Sebastián Covarrubias'Tesoro de la lengua castellana o española, published in 1611 in Madrid. In 1612 the first edition of the Vocabolario dell'Accademia della Crusca, for Italian, was published. In 1690 in Rotterdam was published, posthumously, the Dictionnaire Universel.
!! end
@@ -509,9 +509,9 @@ The first monolingual dictionary written in a Romance language was ''Sebastián
###
!! test
Italics and bold: 2-quote opening sequence: (2,2)
-!! input
+!! wikitext
''foo''
-!! result
+!! html
foo
!!end
@@ -519,9 +519,9 @@ Italics and bold: 2-quote opening sequence: (2,2)
!! test
Italics and bold: 2-quote opening sequence: (2,3)
-!! input
+!! wikitext
''foo'''
-!! result
+!! html
foo'
!!end
@@ -529,32 +529,23 @@ Italics and bold: 2-quote opening sequence: (2,3)
!! test
Italics and bold: 2-quote opening sequence: (2,4)
-!! input
+!! wikitext
''foo''''
-!! result
+!! html
foo''
!!end
+# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
!! test
-Italics and bold: 2-quote opening sequence: (2,5) (php)
-!! options
-php
-!! input
+Italics and bold: 2-quote opening sequence: (2,5)
+!! wikitext
''foo'''''
-!! result
+!! html/php
foo
-!!end
-# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
-!! test
-Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
-!! options
-parsoid
-!! input
-''foo'''''
-!! result
+!! html/parsoid
foo
!!end
@@ -566,9 +557,9 @@ parsoid
!! test
Italics and bold: 3-quote opening sequence: (3,2)
-!! input
+!! wikitext
'''foo''
-!! result
+!! html
'foo
!!end
@@ -576,9 +567,9 @@ Italics and bold: 3-quote opening sequence: (3,2)
!! test
Italics and bold: 3-quote opening sequence: (3,3)
-!! input
+!! wikitext
'''foo'''
-!! result
+!! html
foo
!!end
@@ -586,32 +577,23 @@ Italics and bold: 3-quote opening sequence: (3,3)
!! test
Italics and bold: 3-quote opening sequence: (3,4)
-!! input
+!! wikitext
'''foo''''
-!! result
+!! html
foo'
!!end
+# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
!! test
-Italics and bold: 3-quote opening sequence: (3,5) (php)
-!! options
-php
-!! input
+Italics and bold: 3-quote opening sequence: (3,5)
+!! wikitext
'''foo'''''
-!! result
+!! html/php
foo
-!!end
-# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
-!! test
-Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
-!! options
-parsoid
-!! input
-'''foo'''''
-!! result
+!! html/parsoid
foo
!!end
@@ -623,9 +605,9 @@ parsoid
!! test
Italics and bold: 4-quote opening sequence: (4,2)
-!! input
+!! wikitext
''''foo''
-!! result
+!! html
''foo
!!end
@@ -633,9 +615,9 @@ Italics and bold: 4-quote opening sequence: (4,2)
!! test
Italics and bold: 4-quote opening sequence: (4,3)
-!! input
+!! wikitext
''''foo'''
-!! result
+!! html
'foo
!!end
@@ -643,32 +625,23 @@ Italics and bold: 4-quote opening sequence: (4,3)
!! test
Italics and bold: 4-quote opening sequence: (4,4)
-!! input
+!! wikitext
''''foo''''
-!! result
+!! html
'foo'
!!end
+# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
!! test
-Italics and bold: 4-quote opening sequence: (4,5) (php)
-!! options
-php
-!! input
+Italics and bold: 4-quote opening sequence: (4,5)
+!! wikitext
''''foo'''''
-!! result
+!! html/php
'foo
-!!end
-# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
-!! test
-Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
-!! options
-parsoid
-!! input
-''''foo'''''
-!! result
+!! html/parsoid
'foo
!!end
@@ -681,9 +654,9 @@ parsoid
!! test
Italics and bold: 5-quote opening sequence: (5,2)
!! options
-!! input
+!! wikitext
'''''foo''
-!! result
+!! html
foo
!!end
@@ -691,9 +664,9 @@ Italics and bold: 5-quote opening sequence: (5,2)
!! test
Italics and bold: 5-quote opening sequence: (5,3)
-!! input
+!! wikitext
'''''foo'''
-!! result
+!! html
foo
!!end
@@ -701,9 +674,9 @@ Italics and bold: 5-quote opening sequence: (5,3)
!! test
Italics and bold: 5-quote opening sequence: (5,4)
-!! input
+!! wikitext
'''''foo''''
-!! result
+!! html
foo'
!!end
@@ -711,9 +684,9 @@ Italics and bold: 5-quote opening sequence: (5,4)
!! test
Italics and bold: 5-quote opening sequence: (5,5)
-!! input
+!! wikitext
'''''foo'''''
-!! result
+!! html
foo
!!end
@@ -723,9 +696,9 @@ Italics and bold: 5-quote opening sequence: (5,5)
###
!! test
Italics and bold: multiple quote sequences: (2,4,2)
-!! input
+!! wikitext
''foo''''bar''
-!! result
+!! html
foo'bar
!!end
@@ -733,9 +706,9 @@ Italics and bold: multiple quote sequences: (2,4,2)
!! test
Italics and bold: multiple quote sequences: (2,4,3)
-!! input
+!! wikitext
''foo''''bar'''
-!! result
+!! html
foo'bar
!!end
@@ -743,55 +716,37 @@ Italics and bold: multiple quote sequences: (2,4,3)
!! test
Italics and bold: multiple quote sequences: (2,4,4)
-!! input
+!! wikitext
''foo''''bar''''
-!! result
+!! html
foo'bar'
!!end
+# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
!! test
-Italics and bold: multiple quote sequences: (3,4,2) (php)
-!! options
-php
-!! input
+Italics and bold: multiple quote sequences: (3,4,2)
+!! wikitext
'''foo''''bar''
-!! result
+!! html/php
foo'bar
-!!end
-# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
-!! test
-Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
-!! options
-parsoid
-!! input
-'''foo''''bar''
-!! result
+!! html/parsoid
foo'bar
!!end
+# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
!! test
-Italics and bold: multiple quote sequences: (3,4,3) (php)
-!! options
-php
-!! input
+Italics and bold: multiple quote sequences: (3,4,3)
+!! wikitext
'''foo''''bar'''
-!! result
+!! html/php
foo'bar
-!!end
-# The PHP parser strips the empty tags out for giggles; parsoid doesn't.
-!! test
-Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
-!! options
-parsoid
-!! input
-'''foo''''bar'''
-!! result
+!! html/parsoid
foo'bar
!!end
@@ -801,9 +756,9 @@ parsoid
###
!! test
Italics and bold: other quote tests: (2,3,5)
-!! input
+!! wikitext
''this is about '''foo's family'''''
-!! result
+!! html
this is about foo's family
!!end
@@ -811,9 +766,9 @@ Italics and bold: other quote tests: (2,3,5)
!! test
Italics and bold: other quote tests: (2,(3,3),2)
-!! input
+!! wikitext
''this is about '''foo's''' family''
-!! result
+!! html
this is about foo's family
!!end
@@ -821,9 +776,9 @@ Italics and bold: other quote tests: (2,(3,3),2)
!! test
Italics and bold: other quote tests: (3,2,3,2)
-!! input
+!! wikitext
'''this is about ''foo'''s family''
-!! result
+!! html
this is about foos family
!!end
@@ -832,9 +787,9 @@ Italics and bold: other quote tests: (3,2,3,2)
!! test
Italics and bold: other quote tests: (3,2,3,3)
!! options
-!! input
+!! wikitext
'''this is about ''foo'''s family'''
-!! result
+!! html
'this is about foos family
!!end
@@ -842,9 +797,9 @@ Italics and bold: other quote tests: (3,2,3,3)
!! test
Italics and bold: other quote tests: (3,(2,2),3)
-!! input
+!! wikitext
'''this is about ''foo's'' family'''
-!! result
+!! html
this is about foo's family
!!end
@@ -852,9 +807,9 @@ Italics and bold: other quote tests: (3,(2,2),3)
!! test
Italicized possessive
-!! input
+!! wikitext
The ''[[Main Page]]'''s talk page.
-!! result
+!! html
!! end
@@ -864,12 +819,12 @@ Parsoid only: Quote balancing context should be restricted to td/th cells on the
(Requires tidy for PHP parser output to be fixed up)
!! options
parsoid=wt2html,wt2wt
-!! input
+!! wikitext
{|
!''a!!''b
|''a||''b
|}
-!! result
+!! html
a
b
a
b
@@ -882,13 +837,13 @@ parsoid=wt2html,wt2wt
!! test
Non-html5 tags should be accepted
-!! input
+!! wikitext
''foo''
''foo''
''foo''
''foo''''foo''
-!! result
+!! html
foo
foofoo
@@ -899,9 +854,9 @@ Non-html5 tags should be accepted
!! test
is valid wikitext (bug 52468)
-!! input
+!! wikitext
-!! result
+!! html
!! end
@@ -909,11 +864,11 @@ Non-html5 tags should be accepted
# is HTML4, is HTML4/5.
!! test
or for strikethrough
-!! input
+!! wikitext
strikes
-!! result
+!! html
strike
s
@@ -921,7 +876,7 @@ Non-html5 tags should be accepted
!! test
Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
-!! input
+!! wikitext
doesn't work! doesn't work!
@@ -931,7 +886,7 @@ Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
s.foo
-!! result
+!! html
<bâ> doesn't work! </bâ>
<bä> doesn't work! </bä>
<boo> works fine </boo>
@@ -942,11 +897,11 @@ Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
!! test
Isolated close tags should be treated as literal text (bug 52760)
-!! input
+!! wikitext
s
-!! result
+!! html
</b>
<s.foo>s</s>
@@ -958,18 +913,18 @@ Isolated close tags should be treated as literal text (bug 52760)
!! test
Bare pipe character (bug 52363)
-!! input
+!! wikitext
|
-!! result
+!! html
|
!! end
!! test
Bare pipe character from a template (bug 52363)
-!! input
+!! wikitext
{{pipe}}
-!! result
+!! html
|
!! end
@@ -980,16 +935,16 @@ Bare pipe character from a template (bug 52363)
!! test
unordered list
-!! input
+!! wikitext
* This is not an unordered list item.
-!! result
+!! html
* This is not an unordered list item.
!! end
!! test
spacing
-!! input
+!! wikitext
Lorem ipsum dolor
sed abit.
@@ -997,7 +952,7 @@ sed abit.
:and a colon
-!! result
+!! html
Lorem ipsum dolor
sed abit.
@@ -1010,7 +965,7 @@ sed abit.
!! test
nowiki 3
-!! input
+!! wikitext
:There is not nowiki.
:There is nowiki.
@@ -1019,7 +974,7 @@ nowiki 3
*There is not nowiki.
*There is nowiki.
-!! result
+!! html
There is not nowiki.
@@ -1043,9 +998,9 @@ nowiki 3
!! test
Entities inside
-!! input
+!! wikitext
<
-!! result
+!! html
<
!! end
@@ -1054,9 +1009,9 @@ Entities inside
Entities inside template parameters
!! options
parsoid
-!! input
+!! wikitext
{{echo|–}}
-!! result
+!! html
–
!! end
@@ -1066,7 +1021,7 @@ parsoid
###
!! test
Comments and Indent-Pre
-!! input
+!! wikitext
asdf
asdf
@@ -1077,7 +1032,7 @@ Comments and Indent-Pre
asdf
xyz
-!! result
+!! html
asdf
asdf
@@ -1093,11 +1048,11 @@ xyz
!! test
Comment test 2a
-!! input
+!! wikitext
asdf
jkl
-!! result
+!! html
asdf
jkl
@@ -1105,12 +1060,12 @@ jkl
!! test
Comment test 2b
-!! input
+!! wikitext
asdf
jkl
-!! result
+!! html
asdf
jkl
@@ -1118,12 +1073,12 @@ jkl
!! test
Comment test 3
-!! input
+!! wikitext
asdf
jkl
-!! result
+!! html
asdf
jkl
@@ -1131,20 +1086,20 @@ jkl
!! test
Comment test 4
-!! input
+!! wikitext
asdfjkl
-!! result
+!! html
asdfjkl
!! end
!! test
Comment spacing
-!! input
+!! wikitext
a
b
c
-!! result
+!! html
a
b
@@ -1155,74 +1110,74 @@ c
!! test
Comment whitespace
-!! input
+!! wikitext
-!! result
+!! html
!! end
!! test
Comment semantics and delimiters
-!! input
+!! wikitext
-!! result
+!! html
!! end
!! test
Comment semantics and delimiters, redux
-!! input
+!! wikitext
-!! result
+!! html
!! end
!! test
Comment semantics and delimiters: directors cut
-!! input
+!! wikitext
-->
-!! result
+!! html
-->
!! end
!! test
Comment semantics: nesting
-!! input
+!! wikitext
-->
-!! result
+!! html
-->
!! end
!! test
Comment semantics: unclosed comment at end
-!! input
+!! wikitext
oo}}
-!! result
+!! html
FOO
!! end
!! test
Comment on its own line post-expand
-!! input
+!! wikitext
a
{{blank}}
b
-!! result
+!! html
a
b
@@ -1230,11 +1185,11 @@ b
!! test
Comment on its own line post-expand with non-significant whitespace
-!! input
+!! wikitext
a
{{blank}}
b
-!! result
+!! html
a
b
@@ -1245,11 +1200,11 @@ b
###
!! test
No block tags
-!! input
+!! wikitext
a
b
-!! result
+!! html
a
b
@@ -1257,11 +1212,11 @@ b
!! test
Block tag on one line (
)
-!! input
+!! wikitext
a
foo
b
-!! result
+!! html
a
foo
b
@@ -1269,11 +1224,11 @@ a
foo
!! test
Block tag on one line (
)
-!! input
+!! wikitext
a
foo
b
-!! result
+!! html
a
foo
b
@@ -1281,11 +1236,11 @@ a
foo
!! test
Block tag on both lines (
)
-!! input
+!! wikitext
a
foo
b
foo
-!! result
+!! html
a
foo
b
foo
@@ -1293,11 +1248,11 @@ b
foo
!! test
Block tag on both lines (
)
-!! input
+!! wikitext
a
foo
b
foo
-!! result
+!! html
a
foo
b
foo
@@ -1305,13 +1260,13 @@ b
foo
!! test
Multiple lines without block tags
-!! input
+!! wikitext
foo
a
b
c
d e
x
foo
z
-!! result
+!! html
foo
a
b
c
@@ -1323,7 +1278,7 @@ x
foo
z
!! test
Empty lines between lines with block tags
-!! input
+!! wikitext
@@ -1336,7 +1291,7 @@ b
e
-!! result
+!! html
@@ -1354,14 +1309,12 @@ b
## PHP parser emits output which is broken
!! test
Unclosed HTML p-tags should be handled properly
-!! options
-parsoid
-!! input
+!! wikitext
foo
a
b
-!! result
+!! html/parsoid
foo
a
b
@@ -1372,13 +1325,13 @@ b
###
!! test
Preformatted text
-!! input
+!! wikitext
This is some
Preformatted text
With ''italic''
And '''bold'''
And a [[Main Page|link]]
-!! result
+!! html
This is some
Preformatted text
With italic
@@ -1389,12 +1342,12 @@ And a link
!! test
Tabs don't trigger preformatted text
-!! input
+!! wikitext
This is not
preformatted text.
This is preformatted text.
So is this.
-!! result
+!! html
This is not
preformatted text.
@@ -1405,10 +1358,10 @@ Tabs don't trigger preformatted text
!! test
Ident preformatting with inline content
-!! input
+!! wikitext
a
''b''
-!! result
+!! html
a
b
@@ -1416,13 +1369,13 @@ Ident preformatting with inline content
!! test
with inside (compatibility with 1.6 and earlier)
-!! input
+!! wikitext
-!! result
+!! html
<b>
<cite>
@@ -1433,11 +1386,11 @@ Ident preformatting with inline content
!! test
Regression with preformatted in
-!! input
+!! wikitext
Blah
-!! result
+!! html
Blah
@@ -1447,7 +1400,7 @@ Regression with preformatted in
!! test
Bug 52763: Preformatted in
-!! input
+!! wikitext
Blah
{|
@@ -1455,7 +1408,7 @@ Bug 52763: Preformatted in
indented cell (no pre-wrapping!)
|}
-!! result
+!! html
Blah
@@ -1471,13 +1424,13 @@ Bug 52763: Preformatted in
!! test
Bug 51086: Double newlines in blockquotes should be turned into paragraphs
-!! input
+!! wikitext
Foo
Bar
-!! result
+!! html
Foo
Bar
@@ -1488,11 +1441,11 @@ Bar
!! test
Bug 15491: / in blockquote
-!! input
+!! wikitext
Foo bar baz quux
-!! result
+!! html
Foo bar baz quux
@@ -1505,10 +1458,10 @@ Foo bar baz quux
# below in a
tag. (see comment 23-25 of bug #6200)
!! test
Bug 15491: / in blockquote (2)
-!! input
+!! wikitext
Foo bar baz quux
-!! result
+!! html
Foo bar baz quux
@@ -1516,52 +1469,52 @@ Bug 15491: / in blockquote (2)
!! test
with attributes (bug 3202)
-!! input
+!! wikitext
Bluescreen of WikiDeath
-!! result
+!! html
Bluescreen of WikiDeath
!! end
!! test
with width attribute (bug 3202)
-!! input
+!! wikitext
Narrow screen goodies
-!! result
+!! html
Narrow screen goodies
!! end
!! test
with forbidden attribute (bug 3202)
-!! input
+!! wikitext
Narrow screen goodies
-!! result
+!! html
Narrow screen goodies
!! end
!! test
Entities inside
-!! input
+!! wikitext
<
-!! result
+!! html
<
!! end
!! test
with forbidden attribute values (bug 3202)
-!! input
+!! wikitext
Narrow screen goodies
-!! result
+!! html
Narrow screen goodies
!! end
!! test
inside
(bug 13238)
-!! input
+!! wikitext
@@ -1569,7 +1522,7 @@ Entities inside
Foo
-!! result
+!! html
<nowiki>
@@ -1582,7 +1535,7 @@ Entities inside
!! test
and
preference (first one wins)
-!! input
+!! wikitext
@@ -1596,7 +1549,7 @@ Entities inside
-!! result
+!! html
<nowiki>
@@ -1613,23 +1566,23 @@ Entities inside
!! test
inside nowiki
-!! input
+!! wikitext
-!! result
+!! html
</pre>
!! end
!! test
Empty pre; pre inside other HTML tags (bug 54946)
-!! input
+!! wikitext
a
foo
-!! result
+!! html
a
@@ -1641,10 +1594,10 @@ foo
!! test
HTML pre followed by indent-pre
-!! input
+!! wikitext
foo
bar
-!! result
+!! html
foo
bar
@@ -1654,36 +1607,36 @@ HTML pre followed by indent-pre
Block tag pre
!!options
parsoid
-!!input
+!! wikitext
foo
-!!result
-
foo
+!! html
+
foo
!!end
!!test
Templates: Indent-Pre: 1a. Templates that break a line should suppress
-!!input
+!! wikitext
{{echo|}}
-!!result
+!! html
!!end
!!test
Templates: Indent-Pre: 1b. Templates that break a line should suppress
-!!input
+!! wikitext
{{echo|
foo}}
-!!result
+!! html
foo
!!end
!! test
Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
-!! input
+!! wikitext
{{echo|a
b}}
-!!result
+!! html
a
b
@@ -1692,14 +1645,14 @@ b}}
!! test
Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
-!! input
+!! wikitext
{{echo|a
b
c
d
e
}}
-!!result
+!! html
a
b
@@ -1713,7 +1666,7 @@ c
!!test
Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
-!!input
+!! wikitext
{{echo| foo}}
{{echo| foo}}{{echo| bar}}
@@ -1726,7 +1679,7 @@ Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
{{echo| foo}}
{{echo|{{echo| }}bar}}
-!!result
+!! html
foo
foo bar
@@ -1744,7 +1697,7 @@ bar
!! test
Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
-!! input
+!! wikitext
{{echo| }}a
{{echo|
@@ -1758,7 +1711,7 @@ Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
{{echo|a
}} b
-!!result
+!! html
a
@@ -1781,9 +1734,9 @@ Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
!! test
Things that look like
tags aren't treated as such
-!! input
+!! wikitext
Barack Obama of the United States
-!! result
+!! html
Barack Obama <President> of the United States
!! end
@@ -1792,9 +1745,9 @@ Barack Obama of the United States
Parsoid: handle pre with space after attribute
!! options
parsoid=wt2html
-!! input
+!! wikitext
@@ -1811,7 +1764,7 @@ parsoid=wt2html
|}
-!! result
+!! html
@@ -1829,7 +1782,7 @@ parsoid=wt2html
Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
!! options
parsoid=wt2html
-!! input
+!! wikitext
{|
@@ -1838,7 +1791,7 @@ parsoid=wt2html
|}
-!! result
+!! html
@@ -1860,7 +1813,7 @@ parsoid=wt2html
#--------------------------------------------------------------------
!! test
Templates: Strip leading and trailing whitespace from named-param values
-!! input
+!! wikitext
{{echo|1= a }}
{{echo|1= {{echo|b}} }}
@@ -1871,7 +1824,7 @@ Templates: Strip leading and trailing whitespace from named-param values
{{echo| 1 =
* d
}}
-!! result
+!! html
a
b
c
@@ -1885,7 +1838,7 @@ Templates: Strip leading and trailing whitespace from named-param values
!! test
Templates: Don't strip whitespace from positional-param values
-!! input
+!! wikitext
{{echo|a }}
{{echo|{{echo|b}} }}
@@ -1904,7 +1857,7 @@ Templates: Don't strip whitespace from positional-param values
{{echo|
}}g
-!! result
+!! html
a
b
@@ -1932,12 +1885,12 @@ Templates: Don't strip whitespace from positional-param values
!! test
Templates: Handle empty comment-and-ws-only lines correctly
-!! input
+!! wikitext
{{echo|foo
bar}}
-!! result
+!! html
foo
bar
@@ -1950,9 +1903,9 @@ bar
Templates: Parsoid parameter escaping test 1
!! options
parsoid
-!! input
+!! wikitext
{{echo|[foo]|{{echo|[bar]}}}}
-!! result
+!! html
[foo]
!! end
@@ -1961,9 +1914,9 @@ data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
Parsoid: Pipes in external links in template parameter
!! options
parsoid
-!! input
+!! wikitext
{{echo|[{{echo|http://example.com}} link]}}
-!! result
+!! html
@@ -1983,9 +1936,9 @@ data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
Parsoid: Pipe in external link target and content in template parameter
!! options
parsoid=html2wt,wt2wt
-!! input
+!! wikitext
{{echo|[http://foo.com/a|b a|b]}}
-!! result
+!! html
@@ -2109,12 +2062,12 @@ c
!!test
2b. Indent-Pre and tables
-!!input
+!! wikitext
{|
|-
|foo
|}
-!!result
+!! html
@@ -2125,12 +2078,12 @@ c
!!test
2c. Indent-Pre and tables (bug 42252)
-!!input
+!! wikitext
{|
|+ foo
! | bar
|}
-!!result
+!! html
foo
@@ -2142,12 +2095,12 @@ c
!!test
3a. Indent-Pre and block tags (single-line html)
-!!input
+!! wikitext
a
foo
b
foo
c
foo
foo
-!!result
+!! html
a
foo
b
foo
c
foo
@@ -2156,11 +2109,11 @@ c
!!end
!!test
-3c. Indent-Pre and block tags (multi-line html)
-!!input
+3b. Indent-Pre and block tags (multi-line html)
+!! wikitext
a foo
b
foo
-!!result
+!! html
a foo
b
foo
@@ -2168,8 +2121,8 @@ c
!!end
!!test
-3b. Indent-Pre and block tags (pre-content on separate line)
-!!input
+3c. Indent-Pre and block tags (pre-content on separate line)
+!! wikitext
foo
@@ -2200,7 +2153,7 @@ foo
foo
-!!result
+!! html
foo
@@ -2231,15 +2184,87 @@ foo
!!end
+!!test
+4. Indent-Pre and extension tags
+!! wikitext
+ a
+File:foobar.jpg
+
+!! html
+ a
+
+
+
+
+
+
+
+!!end
+
+!! test
+Leading pipes outside of tables
+!! options
+parsoid
+!! wikitext
+| foo
+!! html
+
| foo
+!! end
+
+!! test
+Leading pipes outside of tables 2
+!! options
+parsoid
+!! wikitext
+a
+| foo
+b
+!! html
+
a
+| foo
+b
+!! end
+
+!! test
+Leading pipes outside of tables 3
+!! options
+parsoid
+!! wikitext
+a
+| class="foo bar" | baz
+b
+!! html
+
a
+| class="foo bar" | baz
+b
+!! end
+
+!!test
+Render paragraphs when indent-pre is suppressed in blocklevels
+!! wikitext
+
@@ -2253,11 +2278,11 @@ foo
## NOTE: the leading white-space chars on empty line are significant
!! test
5a. White-space in indent-pre
-!! input
+!! wikitext
a
b
-!! result
+!! html
a
b
@@ -2267,14 +2292,14 @@ b
## NOTE: the leading white-space chars on empty line are significant
!! test
5b. White-space in indent-pre
-!! input
+!! wikitext
a
b
c
-!! result
+!! html
a
b
@@ -2286,11 +2311,11 @@ c
!! test
5c. White-space in indent-pre
-!! input
+!! wikitext
''a''
''b''
''c''
-!! result
+!! html
abc
@@ -2299,7 +2324,7 @@ c
!! test
6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
-!! input
+!! wikitext
a
@@ -2308,7 +2333,7 @@ c
c
d
-!! result
+!! html
a
b
@@ -2324,10 +2349,10 @@ b
7a. Indent-pre and category links
!! options
parsoid=wt2html,wt2wt
-!! input
+!! wikitext
[[Category:foo]]
{{echo| [[Category:foo]]}}
-!! result
+!! html
@@ -2337,10 +2362,10 @@ parsoid=wt2html,wt2wt
7b. Indent-pre and category links
!! options
parsoid=wt2html,wt2wt
-!! input
+!! wikitext
[[Category:foo]] a
[[Category:foo]] {{echo|b}}
-!! result
+!! html
@@ -2402,7 +2427,7 @@ HTML-pre: 2: indented text
!!test
HTML-pre: 3: other wikitext
-!!input
+!! wikitext
* foo
# bar
@@ -2410,7 +2435,7 @@ HTML-pre: 3: other wikitext
'' no-italic ''
[[ NoLink ]]
-!!result
+!! html
* foo
# bar
@@ -2426,9 +2451,9 @@ HTML-pre: 3: other wikitext
###
!! test
Simple definition
-!! input
+!! wikitext
; name : Definition
-!! result
+!! html
name
Definition
@@ -2439,9 +2464,9 @@ Simple definition
!! test
Definition list for indentation only
-!! input
+!! wikitext
: Indented text
-!! result
+!! html
Indented text
@@ -2451,9 +2476,9 @@ Definition list for indentation only
!! test
Definition list with no space
-!! input
+!! wikitext
;name:Definition
-!! result
+!! html
name
Definition
@@ -2464,9 +2489,9 @@ Definition list with no space
!! test
Definition list with URL link
-!! input
+!! wikitext
; http://example.com/ : definition
-!! result
+!! html
definition
@@ -2477,9 +2502,9 @@ Definition list with URL link
!! test
Definition list with bracketed URL link
-!! input
+!! wikitext
;[http://www.example.com/ Example]:Something about it
-!! result
+!! html
Something about it
@@ -2490,9 +2515,9 @@ Definition list with bracketed URL link
!! test
Definition list with wikilink containing colon
-!! input
+!! wikitext
; [[Help:FAQ]]: The least-read page on Wikipedia
-!! result
+!! html
The least-read page on Wikipedia
@@ -2504,9 +2529,9 @@ Definition list with wikilink containing colon
# At Brion's and JeLuF's insistence... :)
!! test
Definition list with news link containing colon
-!! input
+!! wikitext
; news:alt.wikipedia.rox: This isn't even a real newsgroup!
-!! result
+!! html
This isn't even a real newsgroup!
@@ -2517,9 +2542,9 @@ Definition list with news link containing colon
!! test
Malformed definition list with colon
-!! input
+!! wikitext
; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
-!! result
+!! html
@@ -2529,9 +2554,9 @@ Malformed definition list with colon
!! test
Definition lists: colon in external link text
-!! input
+!! wikitext
; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
-!! result
+!! html
OK, I made that up
@@ -2542,9 +2567,9 @@ Definition lists: colon in external link text
!! test
Definition lists: colon in HTML attribute
-!! input
+!! wikitext
;bold
-!! result
+!! html
bold
@@ -2554,9 +2579,9 @@ Definition lists: colon in HTML attribute
!! test
Definition lists: self-closed tag
-!! input
+!! wikitext
;one two : two-line fun
-!! result
+!! html
one two
two-line fun
@@ -2567,14 +2592,14 @@ Definition lists: self-closed tag
!! test
Bug 11748: Literal closing tags
-!! input
+!! wikitext
test 1
test test test test test
test 2
test test test test test
-!! result
+!! html
test 1
test test test test test
@@ -2586,12 +2611,12 @@ Bug 11748: Literal closing tags
!! test
Definition and unordered list using wiki syntax nested in unordered list using html tags.
-!! input
+!! wikitext
; term : description
* unordered
-!! result
+!! html
term
@@ -2609,10 +2634,10 @@ Definition and unordered list using wiki syntax nested in unordered list using h
!! test
Definition list with empty definition and following paragraph
-!! input
+!! wikitext
; term:
Paragraph text
-!! result
+!! html
term
@@ -2624,13 +2649,13 @@ Paragraph text
!! test
Nested definition lists using html syntax
-!! input
+!! wikitext
Foo
-!! result
+!! html
Foo
@@ -2641,11 +2666,11 @@ Nested definition lists using html syntax
!! test
Definition Lists: No nesting: Multiple dd's
-!! input
+!! wikitext
;x
:a
:b
-!! result
+!! html
x
@@ -2659,11 +2684,11 @@ Definition Lists: No nesting: Multiple dd's
!! test
Definition Lists: Indentation: Regular
-!! input
+!! wikitext
:i1
::i2
:::i3
-!! result
+!! html
i1
@@ -2681,10 +2706,10 @@ Definition Lists: Indentation: Regular
!! test
Definition Lists: Indentation: Missing 1st level
-!! input
+!! wikitext
::i2
:::i3
-!! result
+!! html
i2
@@ -2701,9 +2726,9 @@ Definition Lists: Indentation: Missing 1st level
!! test
Definition Lists: Indentation: Multi-level indent
-!! input
+!! wikitext
:::i3
-!! result
+!! html
@@ -2719,14 +2744,14 @@ Definition Lists: Indentation: Multi-level indent
!! test
Definition Lists: Hacky use to indent tables
-!! input
+!! wikitext
::{|
|foo
|bar
|}
this text
should be left alone
-!! result
+!! html
foo
@@ -2743,11 +2768,11 @@ should be left alone
Definition Lists: Hacky use to indent tables (WS-insensitive)
!! options
parsoid
-!! input
+!! wikitext
: {|
|a
|}
-!! result
+!! html
a
@@ -2789,7 +2814,7 @@ parsoid
!! test
Table / list interaction: indented table with lists in table contents
-!! input
+!! wikitext
:{|
|-
| a
@@ -2798,7 +2823,7 @@ Table / list interaction: indented table with lists in table contents
| c
* d
|}
-!! result
+!! html
@@ -2820,7 +2845,7 @@ Table / list interaction: indented table with lists in table contents
!!test
Table / list interaction: lists nested in tables nested in indented lists
-!!input
+!! wikitext
:{|
|
:a
@@ -2832,7 +2857,7 @@ Table / list interaction: lists nested in tables nested in indented lists
*e
*f
-!!result
+!! html
@@ -2864,11 +2889,11 @@ Table / list interaction: lists nested in tables nested in indented lists
Definition Lists: Nesting: Multi-level (Parsoid only)
!! options
parsoid
-!! input
+!! wikitext
;t1 :d1
;;t2 ::d2
;;;t3 :::d3
-!! result
+!! html
t1
d1
@@ -2894,10 +2919,10 @@ parsoid
Definition Lists: Nesting: Test 2 (Parsoid only)
!! options
parsoid
-!! input
+!! wikitext
;t1
::d2
-!! result
+!! html
t1
@@ -2914,10 +2939,10 @@ parsoid
Definition Lists: Nesting: Test 3 (Parsoid only)
!! options
parsoid
-!! input
+!! wikitext
:;t1
::::d2
-!! result
+!! html
@@ -2940,10 +2965,10 @@ parsoid
!! test
Definition Lists: Nesting: Test 4
-!! input
+!! wikitext
::;t3
:::d3
-!! result
+!! html
@@ -2964,14 +2989,12 @@ Definition Lists: Nesting: Test 4
## bug in the PHP parser. (Parsoid team thinks the PHP parser is
## wrong to close the
after the
containing the
.)
!! test
-Definition Lists: Mixed Lists: Test 1 (php)
-!! options
-php
-!! input
+Definition Lists: Mixed Lists: Test 1
+!! wikitext
:;* foo
::* bar
:; baz
-!! result
+!! html/php
@@ -2989,16 +3012,7 @@ php
-!! end
-!! test
-Definition Lists: Mixed Lists: Test 1 (parsoid)
-!! options
-parsoid
-!! input
-:;* foo
-::* bar
-:; baz
-!! result
+!! html/parsoid
@@ -3016,10 +3030,10 @@ parsoid
!! test
Definition Lists: Mixed Lists: Test 2
-!! input
+!! wikitext
*: d1
*: d2
-!! result
+!! html
d1
@@ -3035,10 +3049,10 @@ Definition Lists: Mixed Lists: Test 2
!! test
Definition Lists: Mixed Lists: Test 3
-!! input
+!! wikitext
*::: d1
*::: d2
-!! result
+!! html
@@ -3060,10 +3074,10 @@ Definition Lists: Mixed Lists: Test 3
!! test
Definition Lists: Mixed Lists: Test 4
-!! input
+!! wikitext
*;d1 :d2
*;d3 :d4
-!! result
+!! html
d1
@@ -3081,10 +3095,10 @@ Definition Lists: Mixed Lists: Test 4
!! test
Definition Lists: Mixed Lists: Test 5
-!! input
+!! wikitext
*:d1
*:: d2
-!! result
+!! html
d1
@@ -3102,10 +3116,10 @@ Definition Lists: Mixed Lists: Test 5
!! test
Definition Lists: Mixed Lists: Test 6
-!! input
+!! wikitext
#*:d1
#*::: d3
-!! result
+!! html
@@ -3129,10 +3143,10 @@ Definition Lists: Mixed Lists: Test 6
!! test
Definition Lists: Mixed Lists: Test 7
-!! input
+!! wikitext
:* d1
:* d2
-!! result
+!! html
d1
@@ -3148,10 +3162,10 @@ Definition Lists: Mixed Lists: Test 7
!! test
Definition Lists: Mixed Lists: Test 8
-!! input
+!! wikitext
:* d1
::* d2
-!! result
+!! html
d1
@@ -3172,9 +3186,9 @@ Definition Lists: Mixed Lists: Test 8
!! test
Definition Lists: Mixed Lists: Test 9
-!! input
+!! wikitext
*;foo :bar
-!! result
+!! html
foo
@@ -3189,9 +3203,9 @@ Definition Lists: Mixed Lists: Test 9
!! test
Definition Lists: Mixed Lists: Test 10
-!! input
+!! wikitext
*#;foo :bar
-!! result
+!! html
@@ -3212,13 +3226,11 @@ Definition Lists: Mixed Lists: Test 10
# still-open tags around until the nesting is complete.
!! test
-Definition Lists: Mixed Lists: Test 11 (php)
-!! options
-php
-!! input
+Definition Lists: Mixed Lists: Test 11
+!! wikitext
*#*#;*;;foo :bar
*#*#;boo :baz
-!! result
+!! html/php
@@ -3251,15 +3263,7 @@ php
-!! end
-!! test
-Definition Lists: Mixed Lists: Test 11 (parsoid)
-!! options
-parsoid
-!! input
-*#*#;*;;foo :bar
-*#*#;boo :baz
-!! result
+!! html/parsoid
@@ -3291,12 +3295,10 @@ parsoid
!! test
-Definition Lists: Weird Ones: Test 1 (php)
-!! options
-php
-!! input
+Definition Lists: Weird Ones: Test 1
+!! wikitext
*#;*::;; foo : bar (who uses this?)
-!! result
+!! html/php
@@ -3324,14 +3326,7 @@ php
-!! end
-!! test
-Definition Lists: Weird Ones: Test 1 (parsoid)
-!! options
-parsoid
-!! input
-*#;*::;; foo : bar (who uses this?)
-!! result
+!! html/parsoid
@@ -3364,20 +3359,20 @@ parsoid
###
!! test
External links: non-bracketed
-!! input
+!! wikitext
Non-bracketed: http://example.com
-!! result
+!! html
!!end
!! test
External links: trail
-!! input
+!! wikitext
Linktrails should not work for external links: [http://example.com link]s
-!! result
+!! html
Linktrails should not work for external links: links
!! end
!! test
External links: dollar sign in URL
-!! input
+!! wikitext
http://example.com/1$2345
-!! result
+!! html
!! end
!! test
External links: open square bracket forbidden in URL (named) (bug 4377)
-!! input
+!! wikitext
[http://example.com/1[2345]
-!! result
+!! html
!! end
!! test
External links: newline forbidden in text (bug 6230 regression check)
-!! input
+!! wikitext
[http://example.com/ first
second]
-!! result
+!! html
@@ -3460,63 +3455,63 @@ second]
!! test
External links: Pipe char between url and text
-!! input
+!! wikitext
[http://example.com | link]
-!! result
+!! html
!! end
!! test
External links: protocol-relative URL in free text is left alone
-!! input
+!! wikitext
//example.com/Foo
-!! result
+!! html
//example.com/Foo
!!end
!! test
External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
-!! input
+!! wikitext
foo//example.com/Foo
-!! result
+!! html
foo//example.com/Foo
!! end
!! test
External image
-!! input
+!! wikitext
External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
-!! result
+!! html
External image:
!! end
!! test
External image from https
-!! input
+!! wikitext
External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
-!! result
+!! html
External image from https:
!! end
@@ -3525,135 +3520,135 @@ External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
External image (when not allowed)
!! options
wgAllowExternalImages=0
-!! input
+!! wikitext
External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
-!! result
+!! html
!! end
!! test
Link to non-http image, no img tag
-!! input
+!! wikitext
Link to non-http image, no img tag: ftp://example.com/test.jpg
-!! result
+!! html
!! end
!! test
External links: old bug with URL in query
-!! input
+!! wikitext
Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
-!! result
+!! html
!! end
!! test
External links: old URL-in-URL bug, mixed protocols
-!! input
+!! wikitext
And again with mixed protocols: [ftp://example.com?url=http://example.com link]
-!! result
+!! html
!! end
!! test
External links: [IDN ignored character reference in hostname; strip it right off]
-!! input
+!! wikitext
[http://example.com/]
-!! result
+!! html
!! end
@@ -3677,118 +3672,118 @@ External links: [IDN ignored character reference in hostname; strip it right off
# The Parsoid team.
!! test
External links: IDN ignored character reference in hostname; strip it right off
-!! input
+!! wikitext
http://example.com/
-!! result
+!! html
!! end
!! test
External links: URL within URL (original bug 2)
-!! input
+!! wikitext
[http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
-!! result
+!! html
!! end
!! test
BUG 361: URL within URL, not bracketed
-!! input
+!! wikitext
http://www.example.com/foo?=http://www.example.com/bar
-!! result
+!! html
!! end
!! test
External links: link text with spaces
-!! input
+!! wikitext
[http://www.example.com a b c]
[http://www.example.com ''a'' ''b'']
-!! result
+!! html
@@ -3796,32 +3791,22 @@ External links: link text with spaces
!! test
External links: wiki links within external link (Bug 3695)
-!! options
-php
-!! input
+!! wikitext
[http://example.com [[wikilink]] embedded in ext link]
-!! result
+!! html/php
-!! end
-
-!! test
-Parsoid: External links: wiki links within external link (Bug 3695)
-!! options
-parsoid
-!! input
-[http://example.com [[wikilink]] embedded in ext link]
-!! result
+!! html/parsoid
!! end
!! test
BUG 787: Links with one slash after the url protocol are invalid
-!! input
+!! wikitext
http:/example.com
[http:/example.com title]
-!! result
+!! html
http:/example.com
[http:/example.com title]
@@ -3829,22 +3814,22 @@ http:/example.com
!! test
Bracketed external links with template-generated invalid target
-!! input
+!! wikitext
[{{echo|http:/example.com}} title]
-!! result
+!! html
!! end
@@ -3867,18 +3852,18 @@ http://www.example.com/?title=AT%26T
# % is actually legal in HTML5. Any change in output would need testing though.
!! test
Bug 4781, 5267: %25 in URL
-!! input
+!! wikitext
http://www.example.com/?title=100%25_Bran
-!! result
+!! html
!! end
@@ -3886,27 +3871,27 @@ http://www.example.com/?title=Ben-Hur_%281959_film%29
!! test
Bug 4781: %26 in autonumber URL
-!! input
+!! wikitext
[http://www.example.com/?title=AT%26T]
-!! result
+!! html
!! end
!! test
Bug 4781, 5267: %28, %29 in autonumber URL
-!! input
+!! wikitext
[http://www.example.com/?title=Ben-Hur_%281959_film%29]
-!! result
+!! html
!! end
!! test
Bug 4781, 5267: %28, %29 in bracketed URL
-!! input
+!! wikitext
[http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
-!! result
+!! html
!! end
!! test
External link containing double-single-quotes in text '' (bug 4598 sanity check)
-!! input
+!! wikitext
Some [http://example.com/ pretty ''italics'' and stuff]!
-!! result
+!! html
!! end
!! test
External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
-!! input
+!! wikitext
''Some [http://example.com/ pretty ''italics'' and stuff]!''
-!! result
+!! html
!! end
!! test
External link containing double-single-quotes with no space separating the url from text in italics
-!! options
-php
-!! input
+!! wikitext
[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (ParÃs)|Museo Picasso]].]
-!! result
+!! html/php
-!! end
-
-!! test
-Parsoid:External link containing double-single-quotes with no space separating the url from text in italics
-!! options
-parsoid
-!! input
-[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (ParÃs)|Museo Picasso]].]
-!! result
+!! html/parsoid
!! end
!! test
URL-encoding in URL functions (single parameter)
-!! input
+!! wikitext
{{localurl:Some page|amp=&}}
-!! result
+!! html
/index.php?title=Some_page&=&
!! end
!! test
URL-encoding in URL functions (multiple parameters)
-!! input
+!! wikitext
{{localurl:Some page|q=?&=&}}
-!! result
+!! html
/index.php?title=Some_page&q=?&=&
!! end
!! test
Brackets in urls
-!! input
+!! wikitext
http://example.com/index.php?foozoid%5B%5D=bar
http://example.com/index.php?foozoid[]=bar
-!! result
+!! html
!! end
!! test
-Parsoid: use url link syntax for links where the content is equal the link
-target
-!! options
-parsoid
-!! input
+Use url link syntax for links where the content is equal the link target
+!! wikitext
http://example.com
-!! result
+!! html/php
+
!! end
###
@@ -4164,22 +4118,23 @@ parsoid
!! test
Quotes
-!! input
+!! wikitext
Normal text. '''Bold text.''' Normal text. ''Italic text.''
Normal text. '''''Bold italic text.''''' Normal text.
-!!result
+!! html
Normal text. Bold text. Normal text. Italic text.
Normal text. Bold italic text. Normal text.
!! end
+# Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
+# parser strips. The wikitext contains just the first half of the bold
+# quote pair.
!! test
-Unclosed and unmatched quotes (php)
-!! options
-php
-!! input
+Unclosed and unmatched quotes
+!! wikitext
'''''Bold italic text '''with bold deactivated''' in between.'''''
'''''Bold italic text ''with italic deactivated'' in between.'''''
@@ -4200,7 +4155,7 @@ Normal text.
''Tom'''s car is bigger than ''Susan'''s.
Plain ''italic'''s plain
-!! result
+!! html/php
Bold italic text with bold deactivated in between.
Bold italic text with italic deactivated in between.
-!! end
-# Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
-# parser strips. The wikitext contains just the first half of the bold
-# quote pair.
-!! test
-Unclosed and unmatched quotes (parsoid)
-!! options
-parsoid
-!! input
-'''''Bold italic text '''with bold deactivated''' in between.'''''
-
-'''''Bold italic text ''with italic deactivated'' in between.'''''
-
-'''Bold text..
-
-..spanning two paragraphs (should not work).'''
-
-'''Bold tag left open
-
-''Italic tag left open
-
-Normal text.
-
-
-'''This year''''s election ''should'' beat '''last year''''s.
-
-''Tom'''s car is bigger than ''Susan'''s.
-
-Plain ''italic'''s plain
-!! result
+!! html/parsoid
Bold italic text with bold deactivated in between.
Bold italic text with italic deactivated in between.
Bold text..
@@ -4264,24 +4190,16 @@ Plain ''italic'''s plain
# This should not produce
as
# is the bare minimum required by the spec, see:
# http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
-!! test
-A table with no data. (php)
-!! options
-php
-!! input
-{||}
-!! result
-
-!! end
-
# Parsoid team replies: empty table tags are legal in HTML5
!! test
-A table with no data. (parsoid)
+A table with no data.
!! options
parsoid=wt2html
-!! input
+!! wikitext
{||}
-!! result
+!! html/php
+
+!! html/parsoid
!! end
@@ -4290,7 +4208,7 @@ parsoid=wt2html
A table with stray table end tags on start tag line (wt2html)
!! options
parsoid=wt2html
-!! input
+!! wikitext
{|style="color: red;"|}
{|style="color: red;" |}
@@ -4304,7 +4222,7 @@ parsoid=wt2html
{|style="color: red;" |} id="foo"
|foo
|}
-!! result
+!! html
@@ -4328,54 +4246,41 @@ parsoid=wt2html
!! end
!! test
-A table with no data (take 2) (parsoid)
-!! options
-parsoid
-!! input
+A table with no data (take 2)
+!! wikitext
{|
|}
-!! result
+!! html/parsoid
!! end
# A table with nothing but a caption is invalid XHTML, we might want to render
# this as
caption
+# Parsoid team replies: table with only a caption is legal in HTML5
!! test
-A table with nothing but a caption (php)
-!! options
-php
-!! input
+A table with nothing but a caption
+!! wikitext
{|
|+ caption
|}
-!! result
+!! html/php
caption
-!! end
-# Parsoid team replies: table with only a caption is legal in HTML5
-!! test
-A table with nothing but a caption (parsoid)
-!! options
-parsoid
-!! input
-{|
-|+ caption
-|}
-!! result
+!! html/parsoid
caption
!! end
!! test
A table with caption with default-spaced attributes and a table row
-!! input
+!! wikitext
{|
|+ style="color: red;" | caption1
|-
| foo
|}
-!! result
+!! html
caption1
@@ -4387,14 +4292,14 @@ A table with caption with default-spaced attributes and a table row
!! test
A table with captions with non-default spaced attributes and a table row
-!! input
+!! wikitext
{|
|+style="color: red;"|caption2
|+ style="color: red;"| caption3
|-
| foo
|}
-!! result
+!! html
caption2
@@ -4408,14 +4313,14 @@ A table with captions with non-default spaced attributes and a table row
!! test
Table td-cell syntax variations
-!! input
+!! wikitext
{|
| foo bar foo | baz
| foo bar foo || baz
| style='color:red;' | baz
| style='color:red;' || baz
|}
-!! result
+!! html
@@ -4454,13 +4359,13 @@ Simple table
!! test
Simple table but with multiple dashes for row wikitext
-!! input
+!! wikitext
{|
| foo
|-----
| bar
|}
-!! result
+!! html
foo
@@ -4472,7 +4377,7 @@ Simple table but with multiple dashes for row wikitext
!! end
!! test
Multiplication table
-!! input
+!! wikitext
{| border="1" cellpadding="2"
|+Multiplication table
|-
@@ -4493,7 +4398,7 @@ Multiplication table
! 5
| 5 || 10 || 15
|}
-!! result
+!! html
Multiplication table
@@ -4543,11 +4448,11 @@ Multiplication table
!! test
Accept "||" in table headings
-!! input
+!! wikitext
{|
!h1 || h2
|}
-!! result
+!! html
h1
@@ -4558,11 +4463,11 @@ Accept "||" in table headings
!! test
Accept "||" in indented table headings
-!! input
+!! wikitext
:{|
!h1 || h2
|}
-!! result
+!! html
h1
@@ -4573,12 +4478,12 @@ Accept "||" in indented table headings
!! test
Accept empty attributes in td/th cells (td/th cells starting with leading ||)
-!! input
+!! wikitext
{|
!| h1
|| a
|}
-!! result
+!! html
h1
@@ -4590,12 +4495,12 @@ Accept empty attributes in td/th cells (td/th cells starting with leading ||)
!!test
Accept "| !" at start of line in tables (ignore !-attribute)
-!!input
+!! wikitext
{|
|-
| !style="color:red" | bar
|}
-!!result
+!! html
@@ -4606,7 +4511,7 @@ Accept "| !" at start of line in tables (ignore !-attribute)
!!test
Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
-!!input
+!! wikitext
{|
|-
|style='color:red;'|+1
@@ -4618,7 +4523,7 @@ Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present
| +1
| -1
|}
-!!result
+!! html
@@ -4645,7 +4550,7 @@ Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present
!! test
Table rowspan
-!! input
+!! wikitext
{| border=1
| Cell 1, row 1
|rowspan=2| Cell 2, row 1 (and 2)
@@ -4654,7 +4559,7 @@ Table rowspan
| Cell 1, row 2
| Cell 3, row 2
|}
-!! result
+!! html
Cell 1, row 1
@@ -4673,7 +4578,7 @@ Table rowspan
!! test
Nested table
-!! input
+!! wikitext
{| border=1
| α
|
@@ -4684,7 +4589,7 @@ Nested table
|}
|the original table again
|}
-!! result
+!! html
α
@@ -4705,11 +4610,11 @@ Nested table
!! test
Invalid attributes in table cell (bug 1830)
-!! input
+!! wikitext
{|
|Cell:|broken
|}
-!! result
+!! html
broken
@@ -4720,10 +4625,10 @@ Invalid attributes in table cell (bug 1830)
!! test
Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
-!! input
+!! wikitext
{|
| |[ftp://|x||]" onmouseover="alert(document.cookie)">test
-!! result
+!! html
@@ -4737,7 +4642,7 @@ Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitec
!! test
Indented table markup mixed with indented pre content (proposed in bug 6200)
-!! input
+!! wikitext
@@ -4745,7 +4650,7 @@ Indented table markup mixed with indented pre content (proposed in bug 6200)
-!! result
+!! html
@@ -4759,12 +4664,12 @@ Indented table markup mixed with indented pre content (proposed in bug 6200)
!! test
Template-generated table cell attributes and cell content
-!! input
+!! wikitext
{|
|{{table_attribs}}
| {{table_attribs}}
|}
-!! result
+!! html
Foo
@@ -4776,11 +4681,11 @@ Template-generated table cell attributes and cell content
!! test
Template-generated table cell attributes and cell content (2)
-!! input
+!! wikitext
{|
|align=center {{table_attribs}}
|}
-!! result
+!! html
Foo
@@ -4790,11 +4695,11 @@ Template-generated table cell attributes and cell content (2)
!! test
Template-generated table cell attributes and cell content (3)
-!! input
+!! wikitext
{|
|align=center {{table_cells}}
|}
-!! result
+!! html
Foo
@@ -4806,13 +4711,13 @@ Template-generated table cell attributes and cell content (3)
!! test
Table with row followed by newlines and table heading
-!! input
+!! wikitext
{|
|-
! foo
|}
-!! result
+!! html
@@ -4824,13 +4729,13 @@ Table with row followed by newlines and table heading
!! test
Table with empty line following the start tag
-!! input
+!! wikitext
{|
|-
| foo
|}
-!! result
+!! html
@@ -4844,13 +4749,11 @@ Table with empty line following the start tag
# the PHP parser. Parsoid implements the behavior below.
!! test
Table attributes with empty value
-!! options
-parsoid
-!! input
+!! wikitext
{|
| style=| hello
|}
-!! result
+!! html/parsoid
@@ -4861,7 +4764,7 @@ parsoid
!! test
Wikitext table with a lot of comments
-!! input
+!! wikitext
{|
| foo
@@ -4871,7 +4774,7 @@ Wikitext table with a lot of comments
|
|}
-!! result
+!! html
foo
@@ -4884,12 +4787,12 @@ Wikitext table with a lot of comments
!! test
Wikitext table with double-line table cell
-!! input
+!! wikitext
{|
|a
b
|}
-!! result
+!! html
a
@@ -4901,12 +4804,12 @@ b
!! test
Table cell with a single comment
-!! input
+!! wikitext
{|
|
| a
|}
-!! result
+!! html
@@ -4920,15 +4823,13 @@ Table cell with a single comment
# not parse this kind of table at all. The main focus for Parsoid is on
# round-tripping, so this output is ok for now. TODO: revisit!
!! test
-Wikitext table with html-syntax row (Parsoid)
-!! options
-parsoid
-!! input
+Wikitext table with html-syntax row
+!! wikitext
{|
|-
foo
|}
-!! result
+!! html/parsoid
@@ -4940,12 +4841,12 @@ Implicit
after a |-
(PHP parser relies on Tidy to add the missing
tags)
!! options
parsoid=wt2html,wt2wt
-!! input
+!! wikitext
{|
|-
a
|}
-!! result
+!! html
a
@@ -4956,7 +4857,7 @@ Pres should be recognized in an explicit
context, but not in an implicit tags)
!! options
parsoid=wt2html,wt2wt
-!! input
+!! wikitext
{|
|-
|
@@ -4964,7 +4865,7 @@ parsoid=wt2html,wt2wt
|-
b
|}
-!! result
+!! html