From: C. Scott Ananian
Date: Mon, 2 Mar 2015 22:53:01 +0000 (-0500)
Subject: Sync up with Parsoid parserTests.
X-Git-Tag: 1.31.0-rc.0~12226^2
X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=75e29f573722d8ca5a41a35f9337689c5f839f78;p=lhc%2Fweb%2Fwiklou.git
Sync up with Parsoid parserTests.
This now aligns with Parsoid commit 7608aeabdc1e47ce3dbfffd3ded85eecad647260
Change-Id: I4cb8f04b9d7988e5138c8f040fadeb0b7a9348f9
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index dec93389a2..32c7a3933c 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -6238,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
###
@@ -19732,13 +19753,13 @@ B [foo]
C
!! html
-A [1]
-B [2]
+
A [1]
+B [2]
C [3]
-
-- â foo
-- â foo
-- â
+
+- â foo
+- â foo
+- â
!!end
@@ -19751,10 +19772,10 @@ A [foo]
B
!! html
-A [1]
+
A [1]
B [1]
-
-- â 1.0 1.1 foo
+
+- â 1.0 1.1 foo
!!end
@@ -19768,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
@@ -19785,9 +19806,9 @@ parsoid
A [foo]
!! html
-A [1]
-
-- â foo
+A [1]
+
+- â foo
!!end
@@ -19802,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
@@ -19823,13 +19844,13 @@ A [
!! html
-]A [1]
+A [1]
-- â foo
+
- â foo
bar
baz
-
+
!!end
@@ -19853,10 +19874,10 @@ booz
!! html
-A [1]
+A [1]
-- â foo
+
- â foo
bar
@@ -19866,7 +19887,7 @@ baz
booz
-
+
!!end
@@ -19879,9 +19900,9 @@ A [ foo {{echo|] B C}}
!! html
-A [1] B C}}
+A [1] B C}}
-- â foo {{echo|
+- â foo {{echo|
!!end
@@ -19893,9 +19914,9 @@ parsoid
A [ foo "},"attrs":{}}'>[1] B C]
+A [1] B C
-- â foo
+- â foo
!!end
@@ -19908,11 +19929,11 @@ A [ foo ] B C
!! html
-A [1] B C
+A [1] B C
-- â foo
+- â foo
!!end
@@ -19925,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
@@ -19953,10 +19974,9 @@ c
[2]
c
-
-- â
-- â
-
+
+- â
+- â
!!end
!!test
@@ -19969,11 +19989,12 @@ parsoid
B
!! html
-[1] A
-[2] B
-
-- â foo
-- â bar
+[1] A
+[2] B
+
+- â foo
+- â bar
+
!!end
@@ -19986,10 +20007,10 @@ parsoid
!! html
-[1]
-
+[1]
+
-- â foo <ref>bar</ref> baz
+- â foo <ref>bar</ref> baz
!!end
@@ -20003,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
@@ -20020,10 +20041,9 @@ A [foo]
!! html
-A [1]
-
+A [1]
-- â foo
+- â foo
!!end
!!test
@@ -20035,11 +20055,12 @@ parsoid
!!html
-[1]
+
[1]
-
-- â foo
+
+- â foo
+
!!end
!!test
@@ -20051,11 +20072,12 @@ parsoid
!!html
-[1]
+
[1]
-
-- â foo
+
+- â foo
+
!!end
!!test
@@ -20067,9 +20089,29 @@ parsoid
!! html
-1 [1] 2 [1]
+
1 [1] 2 [1]
+
+
+- â 1.0 1.1 foo
+
+!!end
-- â 1.0 1.1 foo
+!!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 1.2 Foo one
!!end
@@ -20080,7 +20122,7 @@ parsoid
!! wikitext
!! html
-
+
!!end
!!test
@@ -20096,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
@@ -20122,14 +20166,15 @@ B [bar]
!! html
-A [1]
+A [1]
-- â foo
+- â foo
-B [1]
+B [1]
-- â bar
+
+- â bar
!!end
@@ -20147,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
@@ -20173,10 +20218,10 @@ This should just get lost.
!! html
A [1]
-B [2]
+B [2]
-- â foo
- â bar
+- â foo
- â bar
!!end
@@ -20187,7 +20232,8 @@ parsoid
!! wikitext
[Foo] {{echo|}}
!! html
-[1]
- â Foo
+[1]
- â Foo
+
!!end
!! test
@@ -20204,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
@@ -20221,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
@@ -20236,12 +20288,12 @@ parsoid
A [foo]
B [bar]
!! html
-A [1] B [inexistent 1]
-
-- â foo
+A [1] B [inexistent 1]
+
+- â foo
-
-- â bar
+
+- â bar
!! end
@@ -20253,9 +20305,9 @@ parsoid
[hi]
!! html
-[1]
-
-- â hi
+[1]
+
+- â hi
!! end
@@ -20270,11 +20322,9 @@ a[foo]
!! html
-a[1]
-
-
+a[1]
-- â foo
+- â foo
!! end
!! test
@@ -20295,11 +20345,11 @@ Empty LI and TR nodes should be stripped from template content
{{EmptyLITest}}
{{EmptyTRTest}}
!!html/parsoid
-
+
-
+
foo |
@@ -20343,7 +20393,7 @@ Empty TR nodes should not be stripped if they have any attributes set
!!wikitext
{{EmptyTRWithHTMLAttrTest}}
!!html/parsoid
-
+
foo |
@@ -21543,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
@@ -21664,9 +21714,10 @@ foo [''a''
b]
!! html
-foo [1]
-
-- â a b
+foo [1]
+
+- â a
+ b
!! end