From: Subramanya Sastry Blah
indented cell (no pre-wrapping!)
+
!! input
Blah
+{|
+|
+ indented cell (no pre-wrapping!)
+|}
!! result
!! end
@@ -1893,7 +1903,7 @@ data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
!! end
!! test
-Templates: Dont escape already nowiki-escaped text in template parameters
+Templates: Don't escape already nowiki-escaped text in template parameters
!! options
parsoid=html2wt,wt2wt
!! input
@@ -2172,9 +2182,9 @@ parsoid=wt2html,wt2wt
[[Category:foo]]
{{echo| [[Category:foo]]}}
!! result
-
+
-
+
!! end
!! test
@@ -2186,9 +2196,9 @@ parsoid=wt2html,wt2wt
[[Category:foo]] {{echo|b}}
!! result
+
+
+
- a
+ a
- b
+ b
!! end
###
@@ -3640,6 +3650,8 @@ External links: link text with spaces
!! test
External links: wiki links within external link (Bug 3695)
+!! options
+php
!! input
[http://example.com [[wikilink]] embedded in ext link]
!! result
@@ -3647,6 +3659,16 @@ External links: wiki links within external link (Bug 3695)
wikilink embedded in ext link
+!! end + !! test BUG 787: Links with one slash after the url protocol are invalid !! input @@ -3791,6 +3813,8 @@ External link containing double-single-quotes in text embedded in italics (bug 4 !! test External link containing double-single-quotes with no space separating the url from text in italics +!! options +php !! 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 @@ -3798,6 +3822,16 @@ External link containing double-single-quotes with no space separating the url f !! 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 +La muerte de Casagemas (1901) en el sitio de Museo Picasso.
+!! end + !! test External link with comments in link text !! input @@ -4899,6 +4933,19 @@ Namespace takes precedence over interwiki link (bug 51680) !! end +# The previous test doesn't work correctly in html2*, due to not recognizing the +# link as an internal one. This one checks for the correct behavior. +!! test +Link to namespace preferred over interwiki with correct rel attribute +!! options +parsoid=html2wt,html2html +!! input +[[MemoryAlpha:AlphaTest]] +!! result + +!! end + !! test Piped link to namespace !! input @@ -5332,6 +5379,16 @@ Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved !! end +!! test +Parsoid: Scoped parsing should handle mixed transclusions and plain text +!! options +parsoid +!! input +[[Foo|{{echo|a}} b {{echo|c}}]] +!! result + +!! end + ### ### Interwiki links (see maintenance/interwiki.sql) ### @@ -5378,6 +5435,22 @@ Interwiki link with fragment (bug 2130) !! end +# Ideally the wikipedia: prefix here should be proto-relative too +!! test +Different interwiki prefixes mapping to the same URL +!! options +parsoid +!! input +[[wikipedia:Foo]] + +[[:en:Foo]] +!! result + + + + +!! end + ### ### Interlanguage links @@ -5477,7 +5550,7 @@ parsoid [[ko:]] !! result-
+ !! end !! test @@ -5487,7 +5560,7 @@ parsoid !! input [[:ko:]] !! result - + !! end ### @@ -5550,7 +5623,7 @@ parsoid=wt2html !! input #REDIRECT [[Category:Foo]] !! result - + !! end !! test @@ -5560,7 +5633,7 @@ parsoid=wt2html !! input #REDIRECT [[Category%3AFoo]] !! result - + !! end !! test @@ -8278,9 +8351,9 @@ parsoid=wt2html,wt2wtfoo |
foo |
foo |
foo |
foo |
foo
+bar
+!! end + ### ### Subpages @@ -10404,7 +10501,7 @@ language=is !! input x[[Category:Foo]]y !! result -xy
+xy
!! end !! test @@ -10430,8 +10527,8 @@ parsoid [[Category:Foo]] [[Category:Foo|Bar]] !! result - - + + !! end ### @@ -16386,10 +16483,10 @@ AA [1]
+A [1]
-A [1] B C}}
- -A [1] B C}}
+A [1] B C
+A [1] B C
+A [1] B C
-+ '''This is very bold of you!''' + +{| +| + indented cell (no pre-wrapping!) +|} ++foo +
indented row |
++ This is very bold of you! +
++
+ indented cell (no pre-wrapping!) +
foo
+foo
+ bar + +foo2 + bar2 + +AB
!! end +!!test +5. Bug 54262: New entities +!! options +parsoid=html2wt +!! input +foo +!! result +foo +!! end + # ----------------------------------------------------------------- # End of section for Parsoid-only html2wt tests for serialization # of new content