From: Subramanya Sastry
Date: Mon, 26 Nov 2018 15:14:03 +0000 (-0500)
Subject: Sync up with Parsoid parserTests.txt
X-Git-Tag: 1.34.0-rc.0~3441^2
X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=72fd6adca712c2805b0c47371f16a8cfca0e5c5d;p=lhc%2Fweb%2Fwiklou.git
Sync up with Parsoid parserTests.txt
This now aligns with Parsoid commit c900a0c7dbd27cdba09d43971411e6849be73558
Change-Id: I7d7049e4cfbe50d7fe9c90894a6879e1694a3078
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index e034fec58d..d2fbd8d302 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -1435,7 +1435,7 @@ Non-word characters don't terminate tag names
!! end
###
-### See tests/parser/parserTestsParserHook.php for the extension)
+### See tests/parser/ParserTestParserHook.php for the extension)
### This checks that HTML5 tags (with non-word characters in the tag
### name) make it safely through the parser -- the Sanitizer will
### munge them later, as it should.
@@ -2834,7 +2834,7 @@ two">hi
hi
!! html/parsoid
-
hi
+
hi
!! end
!! test
@@ -2869,7 +2869,7 @@ parsoid=wt2html
x
<pre
!! html/parsoid
-
x
+
x
!! end
@@ -3681,7 +3681,7 @@ array (
hi
!! html/parsoid
-
hi
+
hi
!! end
!!test
@@ -6925,9 +6925,9 @@ Don't break on | in extension attribute in template
!! html/parsoid
-
!! end
## We don't support roundtripping of these attributes in Parsoid.
@@ -7100,9 +7100,9 @@ T107652: s in templates that also generate table cell attributes should be
!! html/parsoid
!! end
!! test
@@ -8044,6 +8044,8 @@ Link containing % as a double hex sequence interpreted to hex sequence
## Example for such a section: == < ==
!! test
Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
+!! options
+title=[[Main Page]]
!! config
wgFragmentMode=[ 'html5', 'legacy' ]
!! wikitext
@@ -8822,6 +8824,8 @@ Interwiki link with fragment (T4130)
!! test
Link scenarios with escaped fragments
+!! options
+title=[[Main Page]]
!! config
wgFragmentMode=[ 'html5', 'legacy' ]
!! wikitext
@@ -11024,7 +11028,7 @@ wgRestrictDisplayTitle=false
Parser test
!! html/parsoid
-
+
!! end
# NOTE: mw:ExpandedAttrs is not the best typeof here. mw:Transclusion is better.
@@ -12725,7 +12729,7 @@ array (
foo-{bar}bat
foo-{bar}bat
foo-{bar}bat
-
foo-{bar}bat
+
foo-{bar}bat
!! end
@@ -13647,11 +13651,11 @@ Templates: Wiki Tables: 7. Fosterable s should get fostered
!! html/parsoid
-
!! end
!! test
@@ -13827,6 +13831,7 @@ Parser Functions: 2. Nested use (only outermost should be marked up)
!! test
Template nested in extension tag in template
!! options
+title=[[Main Page]]
language=zh
!! wikitext
{{echo|hi[[ho|{{echo|hi}}]]}}
@@ -13834,10 +13839,10 @@ language=zh
{{echo|hi-{ho|{{echo|hi}}}-}}
!! html/parsoid
-
!! end
# Parsoid html2wt disabled because it adds padding spaces around =
@@ -18991,7 +18996,7 @@ Tags which are hidden from tidiers cannot pass through the Sanitizer
!! end
###
-### Parser hooks (see tests/parser/parserTestsParserHook.php for the extension)
+### Parser hooks (see tests/parser/ParserTestParserHook.php for the extension)
###
!! test
@@ -19261,7 +19266,7 @@ array (
!! end
###
-### (see tests/parser/parserTestsParserHook.php for the extension)
+### (see tests/parser/ParserTestParserHook.php for the extension)
###
!! test
@@ -19275,8 +19280,8 @@ Parser hook: static parser hook not inside a comment
hello, world
!! html/parsoid
-
-
hello, world
+
+
hello, world
!! end
!! test
@@ -19289,7 +19294,7 @@ Parser hook: static parser hook inside a comment
!! html/parsoid
-
+
!! end
# Nested template calls; this case was broken by Parser.php rev 1.506,
@@ -19364,6 +19369,8 @@ Table not started
!! test
Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
+!! options
+title=[[Main Page]]
!! config
wgFragmentMode=[ 'html5', 'legacy' ]
!! wikitext
@@ -20055,8 +20062,8 @@ parsoid=wt2html
!! html/parsoid
-
+
!! end
!! test
@@ -20082,7 +20089,7 @@ Templates in extension attributes are not expanded
!! html/parsoid
-
+
!! end
!! test
@@ -26801,6 +26808,33 @@ parsoid=html2wt
!! end
+!! test
+Tables: 4e. Escape }
+!! options
+parsoid=html2wt
+!! html/parsoid
+