From 1c4a8ff314ae894a5dae23cd1c6b76b4e82bac49 Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian" <h2>foo</h2> -->
--> -->
--> But this is not a comment.
+ But this is not a comment. a a a a : b a : b {{{1}}} bar
+foo
+ bar
+foo a bfoo
+
+
+
+this needs protection !! here
+
+!! wikitext
+{|
+!
+this does not need
+protection !! here
+
@@ -1894,7 +1977,7 @@ a [[Category:A1]] [[Category:A2]]
[[Category:A4]]
!! html/parsoid
- a
- b
+ a
+ b
+!! end
+
+!! test
+Indent-Pre: Newlines in comments shouldn't affect sol state
+!! wikitext
+a b
+!! html/parsoid
+ after the
.
!! test
Definition Lists: Weird Ones: Test 1
!! wikitext
@@ -4063,7 +4173,7 @@ Definition Lists: Weird Ones: Test 1
-
Bold tag left open
Italic tag left open
Normal text. -
This year's election should beat last year's. +
+ +This year's election should beat last year's.
Toms car is bigger than Susans.
Plain italic's plain
@@ -5480,6 +5632,7 @@ Simple table but with multiple dashes for row wikitext !! end + !! test Multiplication table !! wikitext @@ -5600,6 +5753,69 @@ Accept "||" in indented table headings !! end +!! test +Accept "!!" in templates +!! wikitext +{| +!a {{echo|b!!c}} +|} +!! html/php +a b | +c + |
---|
a b | c |
---|
a
+ b!!c + + |
---|
a
+ b!!c |
---|
a | +
---|
b!!c | +
a |
---|
b!!c |
bar + | +bar + | +title="foo|" bar + |
Foo | +Bar | +Foo and Baz + |
---|---|---|
Foo | +Bar | +Foo and Baz + |
Foo | Bar | Foo and Baz |
---|---|---|
Foo | Bar | Foo and Baz |
Blah blah blah
@@ -7524,7 +7788,21 @@ Blah blah blah - +!! end + +!! test +Space and question mark encoding in interlanguage links (T95473) +!! options +parsoid=wt2html,wt2wt,html2html +!! wikitext +Blah blah blah +[[es:Foo bar?]] +!! html/php +Blah blah blah +
+!! html/parsoid +Blah blah blah
+ !! end !! test @@ -7702,12 +7980,10 @@ Blah blah blah !! test 1. Simple redirect to page -!! options -parsoid !! wikitext #REDIRECT [[Main Page]] -!! html - +!! html/parsoid + !! end !! test @@ -7718,12 +7994,22 @@ parsoid !! end +# Not a valid redirect in PHP (although perhaps it was, once upon a time) +# This tests the Parsoid bail-out code. !! test 3. Other redirect variants !! wikitext #REDIRECT [[Foo
+!! html/parsoid +Foo
!! wikitext Foo #REDIRECT [[Foo]] @@ -8225,7 +8512,7 @@ parsoid !! wikitext *block (bug 785) *foo*bar* zar -!! html +!! html/php
foo
bar
foo
bar
(test)
+!! html/parsoid + !! end !! test @@ -9882,6 +10175,24 @@ Template with targets containing wikilinks !! end +!! article +Template:'' +!! text +bar +!! endarticle + +!! test +Templates: Double quotes as template target +!! wikitext +foo {{''}} baz +!! html/php +foo bar baz +
+!! html/parsoid +foo bar baz +
+!! end + !! article Template:MSGNW test !! text @@ -10669,6 +10980,24 @@ Templates: Support for templates generating attributes and content !! end +!! test +3. Entities and nowikis inside templated attributes should be handled correctly inside templated tables +!! wikitext +{{tbl-start}} +|{{table_attribs_3}} +{{tbl-end}} +!! html/php +Foo + |
Foo |
foo + |
123
456
-123
456
+123
456
!! end !! test @@ -12011,7 +12380,7 @@ Image with multiple widths -- use last !! html/parsoid - + !! end !! test @@ -12027,7 +12396,7 @@ thumbsize=220 !! html/parsoid - + !! end @@ -12043,9 +12412,9 @@ Image with width attribute at different positions !! html/parsoid - - - + + + !! end # a sad bit of backward-compatibility @@ -12061,7 +12430,7 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - + !! end !! test @@ -12187,7 +12556,7 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - + !! end !! test @@ -12334,9 +12703,9 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - - - + + + !! end !! test @@ -12372,9 +12741,9 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - - - + + + !! end ################### @@ -12401,8 +12770,8 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - - + + !! end !! test @@ -12418,8 +12787,8 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - - + + !! end !! test @@ -12432,7 +12801,7 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - + !! end !! test @@ -12448,8 +12817,8 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - - + + !! end !! test @@ -12462,7 +12831,7 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - + !! end !! test @@ -12478,8 +12847,8 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - - + + !! end !! test @@ -12550,7 +12919,7 @@ thumbsize=220 !! html/parsoid - + !! end !! test @@ -12564,7 +12933,7 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - + !! end !! test @@ -12576,7 +12945,7 @@ SVG thumbnails with no language set !! html/parsoid - + !! end !! test @@ -12589,7 +12958,7 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid - + !! end !! test @@ -12613,7 +12982,7 @@ BUG 1887: A ISBN with a thumbnail !! html/parsoid - + !! end !! test @@ -12624,7 +12993,7 @@ BUG 1887: A RFC with a thumbnail !! html/parsoid - + !! end !! test @@ -12635,7 +13004,7 @@ BUG 1887: A mailto link with a thumbnail !! html/parsoid - + !! end # Pending resolution to bug 368 @@ -12726,7 +13095,7 @@ Image caption containing another image !! html/parsoid - + !! end !! test @@ -12750,7 +13119,7 @@ Image: caption containing leading space !! html/parsoid - + !!end !! test @@ -12769,7 +13138,7 @@ and some more text.]] !! html/parsoid -*This is a long sentence here that will make the nowiki algo split up the nowikis into multiple pairs +|** Make this another long long long sentence forcing the nowiki algo to split up the nowikis.
+!! wikitext +<foo + | +bar> + |
<foo | +bar> |
foo [1]
-foo [1]
++* foo +* bar ++!! end + #### --------------- Behavior Switches -------------------- + !! test 1. Valid behavior switches should be escaped !! options @@ -22294,6 +22849,29 @@ __TOO__ __|__ !! end +# We use indent-pre as an indirect way to test for sol-transparent behavior. +!! test +Behavior switches should be SOL-transparent +!! wikitext + __TOC__ + + + __TOO__ + + __TOC__ foo + +__TOC__ bar +!! html/parsoid + + + +
__TOO__+ +
foo+ +
bar+!! end + #### --------------- HTML tags --------------- #### 1. a tags #### 2. other tags @@ -22615,6 +23193,8 @@ bar !!end +# Note that the "style" attribute is really a template parameter here. +# The = would have to be {{=}} if you wanted the literal. !!test Empty TD followed by TD with tpl-generated attribute !! wikitext @@ -22775,7 +23355,7 @@ Multi-line image caption generated by templates with/without trailing newlines New element inserted (without intervening newlines) after an old sol-transparent node should serialize correctly !! options parsoid=html2wt -!! html +!! html/parsoid
new para
x
x
hi
ho
@@ -22849,7 +23425,7 @@ parsoid=wt2html,wt2wt|| ||
a |
bar |
bar |
bar |
foo
bar |
}}bar |
foo
}}bar |
foo
{{echo|foo | foo}}
foo
{{echo|foo | foo
ok
-!! html +!! html/parsoidfoo
bar |
foo
a
{{{1}}}
b | @@ -23023,7 +23604,7 @@ parsoid=wt2wt,wt2html parsoid=wt2wt,wt2html !! wikitext
hi
hello
!!end @@ -23038,7 +23619,7 @@ parsoid=wt2html,wt2wt |} |} -!! html +!! html/parsoid